-
Notifications
You must be signed in to change notification settings - Fork 20
50 lines (37 loc) · 1.16 KB
/
build_windows.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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 -r requirements.txt
python -m pip install pyinstaller
- 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