diff --git a/.github/workflows/build_windows.yaml b/.github/workflows/build_windows.yaml new file mode 100644 index 0000000..6b7311b --- /dev/null +++ b/.github/workflows/build_windows.yaml @@ -0,0 +1,49 @@ +name: Build standalone tool for Windows + +on: push + +jobs: + + Compile-on-Windows: + + runs-on: windows-latest + + steps: + + - uses: actions/checkout@v3 + + - uses: robinraju/release-downloader@v1.8 + with: + repository: "MerginMaps/geodiff" + latest: true + fileName: "geodiff_windows_binaries.zip" + zipBall: false + out-file-path: "scripts/windows_binaries" + extract: true + + - name: Delete files from binaries + run: | + cd scripts/windows_binaries + del geodiff_*.zip + + - uses: actions/setup-python@v4 + with: + python-version: '3.10' + + - name: Install dependencies + run: | + python -m pip install dynaconf pyinstaller mergin-client psycopg2 + + - name: Build Binary + run: | + cd scripts + cmd.exe /C build_exe.bat + + - name: Copy config file + run: copy config.yaml.default scripts/dist/config.yaml + + - name: Upload Zip file as artifact + uses: actions/upload-artifact@v3 + with: + name: dbsync_standalone_win + path: scripts/dist \ No newline at end of file