-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (51 loc) · 1.79 KB
/
pyinstaller.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
name: Pyinstaller
on:
release:
types: [published]
jobs:
build:
name: Pyinstaller (${{ matrix.python-version }}, ${{ matrix.os }})
strategy:
matrix:
os: [ 'macos-latest', 'windows-latest' ]
python-version: ["3.11"]
runs-on: ${{ matrix.os }}
steps:
- name: ⬇️ Checkout
uses: actions/checkout@v3
- name: 🔩 Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: 🐍 Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install upx on Linux # https://stackoverflow.com/questions/57982945/how-to-apt-get-install-in-a-github-actions-workflow
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install -y upx
- name: python -m pip install --upgrade pip
run: python -m pip install --upgrade pip
- name: pip install pyinstaller
run: python -m pip install pyinstaller
- name: editable install
run: python -m pip install --editable .
- name: pyinstaller
shell: bash
run: bash build_with_pyinstaller.sh
- name: ls in dist folder
run: ls dist
- name: zip the app for Mac
if: matrix.os == 'macos-latest'
run: zip -r dist/seguid_calculator_for_mac.zip dist/seguid_calculator2.app
- name: Upload Mac
uses: softprops/action-gh-release@v1
if: matrix.os == 'macos-latest'
with:
files: |
dist/seguid_calculator_for_mac.zip
- name: Upload Win Lin
uses: softprops/action-gh-release@v1
if: matrix.os != 'macos-latest'
with:
files: |
dist/seguid_calculator2.exe
dist/seguid_calculator2