-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (52 loc) · 1.42 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
name: Build
on:
push:
pull_request:
jobs:
build:
name: Build
strategy:
matrix:
os: [ macos-13, windows-latest ]
include:
- os: macos-13
spec: build_macos.spec
package_name: macos-binary
- os: windows-latest
spec: build_windows.spec
package_name: windows-binary
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install deps
run: |
python -m pip install setuptools wheel pyinstaller
python -m pip install -r requirements.txt
python -m pip list
- name: Create Executable
run: pyinstaller ${{ matrix.spec }}
- name: Compress Executable
if: matrix.os == 'macos-13'
working-directory: ./dist
run: |
tar -zcvf QuantiFish.tar.gz QuantiFish.app
- name: Artifact upload
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.package_name }}
path: |
dist/QuantiFish.exe
dist/QuantiFish.tar.gz
retention-days: 30
- name: Create release
if: startsWith(github.ref, 'refs/tags')
uses: softprops/action-gh-release@v1
with:
files: |
./dist/*.exe
./dist/*.app
draft: true