-
Notifications
You must be signed in to change notification settings - Fork 7
55 lines (51 loc) · 1.55 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
name: Build
on:
push
jobs:
build:
name: Build packages
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: macos-13
TARGET: macos
CMD_BUILD: >
cd PySoar &&
pyinstaller --windowed main_pysoar.py &&
cp -r dist/main_pysoar.app . &&
zip -r dist/mac_pysoar.zip main_pysoar.app
OUT_FILE_NAME: mac_pysoar
OUT_FILE_PATH: PySoar/dist/mac_pysoar.zip
ASSET_MIME: application/zip
- os: windows-latest
TARGET: windows
CMD_BUILD: >
cd PySoar &&
pyinstaller --onefile --windowed main_pysoar.py &&
mv dist/main_pysoar.exe dist/windows_pysoar.exe
OUT_FILE_NAME: windows_pysoar
OUT_FILE_PATH: PySoar/dist/windows_pysoar.exe
ASSET_MIME: application/vnd.microsoft.portable-executable
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build with pyinstaller for ${{matrix.TARGET}}
run: ${{matrix.CMD_BUILD}}
- name: list files
run: |
ls
ls PySoar
ls Pysoar/dist
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: ${{matrix.OUT_FILE_NAME}}
path: ${{matrix.OUT_FILE_PATH}}