Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build standalone windows exe #129

Merged
merged 21 commits into from
Oct 10, 2023
56 changes: 56 additions & 0 deletions .github/workflows/build_windows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Build standalone tool for Windows

on:
push:
branches:
- master
JanCaha marked this conversation as resolved.
Show resolved Hide resolved


jobs:

Compile-on-Windows:

runs-on: windows-latest

if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
JanCaha marked this conversation as resolved.
Show resolved Hide resolved

steps:

- uses: actions/checkout@v3

- uses: robinraju/[email protected]
with:
repository: "MerginMaps/geodiff"
latest: true
fileName: "geodiff_windows_binaries.zip"
zipBall: true
out-file-path: "scripts/windows_binaries"
extract: true

- name: Delete files from binaries
run: |
cd scripts/windows_binaries
del geodiff_*.zip
del geodiff-*.zip
wonder-sk marked this conversation as resolved.
Show resolved Hide resolved

- 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