-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (56 loc) · 1.71 KB
/
build-packages.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
---
name: Build -> Packages for Windows & MacOS
# yamllint disable-line rule:line-length
on:
workflow_dispatch:
# set the run-name
run-name: ${{ github.ref_name }} -> Build Packages (
${{ github.run_attempt }}
)
jobs:
build:
name: Build packages
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: macos-latest
TARGET: macos
CMD_BUILD: >
pyinstaller podshell.spec &&
pyinstaller podshell-console.spec &&
cd dist/ &&
zip -r9 podshell-macos *
OUT_FILE_NAME: podshell-macos.zip
OUT_ASSET_NAME: podshell-macos
- os: windows-latest
TARGET: windows
CMD_BUILD: >
pyinstaller podshell.spec &&
pyinstaller podshell-console.spec &&
cd dist &&
tar -acvf podshell-windows.zip podshell-console.exe podshell.exe
OUT_FILE_NAME: podshell-windows.zip
OUT_ASSET_NAME: podshell-windows
permissions:
contents: write
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up Python 3.11
uses: actions/[email protected]
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r ./requirements.txt
pip install pyinstaller
pip install Pillow
- name: Build with pyinstaller for ${{matrix.TARGET}}
run: ${{matrix.CMD_BUILD}}
- name: Archive artifacts
uses: actions/[email protected]
with:
name: ${{ matrix.OUT_ASSET_NAME }}
path: dist/${{ matrix.OUT_FILE_NAME }}