Skip to content

Commit

Permalink
Build standalone windows exe in CI (#129)
Browse files Browse the repository at this point in the history
* test build on windows

* install wget

* change run

* install qgis and find osgeo4w main bat file

* try with python only

* fix error

* call

* cmd.exe

* download release and test extract

* zip build file with prints for checking

* copy config file to folder with binary

* remove prints

* upload as artifact

* dont zip, set whole folder for upload, will be zipped automatically

* install psycopg2

* only run on master branch

* only run on push with tags

* run on any push action

* dont download zipBall, should remove one delete

* print dir for check

* remove dir content print

---------

Co-authored-by: Jan Caha <[email protected]>
  • Loading branch information
JanCaha and Jan Caha authored Oct 10, 2023
1 parent a681845 commit a861896
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build_windows.yaml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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

0 comments on commit a861896

Please sign in to comment.