-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (53 loc) · 1.38 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:
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: Artifact upload
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.package_name }}
path: dist/QuantiFish.*
retention-days: 30
publish-pypi:
name: Pypi
if: startsWith(github.ref, 'refs/tags')
needs:
- build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create release draft
uses: softprops/action-gh-release@v1
with:
files: |
windows-binary/*.exe
macos-binary/*.zip
draft: true
fail_on_unmatched_files: true