-
Notifications
You must be signed in to change notification settings - Fork 37
74 lines (57 loc) · 1.64 KB
/
build.yml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Build
on:
push:
branches: [ main ]
pull_request:
jobs:
build-linux:
runs-on: ubuntu-latest
env:
VERNAME: ${{ github.head_ref || github.ref_name }}
steps:
- uses: actions/checkout@v3
- name: Setup
run: |
sudo apt-get update && sudo apt-get install -y make ca-certificates
sudo update-ca-certificates
- name: Build
run: |
echo "${{ env.VERNAME }}" > autoortho/.version
make lin_bin VERSION="${{ env.VERNAME }}"
- name: Save artifact
uses: actions/upload-artifact@v3
with:
name: linbin
path: autoortho_lin_*.bin
build-windows:
runs-on: windows-latest
env:
VERNAME: ${{ github.head_ref || github.ref_name }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Set up MinGW
uses: egor-tensin/setup-mingw@v2
with:
platform: x64
- name: Setup
run: |
#choco --yes install winfsp
python -m pip install -U pytest
# Windows OS package install ecosystem is sketchy and broken. Just test min stuff ...
python -m pip install -U -r requirements-win.txt
python -m pip install -U -r requirements-build.txt
- name: Build
run: |
echo "${{ env.VERNAME }}" > autoortho/.version
make win_exe VERSION="${{ env.VERNAME }}"
make win_zip ZIP="7z a" VERSION="${{ env.VERNAME }}"
- name: Save artifact
uses: actions/upload-artifact@v3
with:
name: winbin
path: |
AutoOrtho_*.exe
autoortho_win_*.zip