forked from speced/bikeshed
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (63 loc) · 1.83 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
name: pyinstaller
on:
push:
branches: ["main"]
paths-ignore:
- .*
- .*/**
- demos/**
- docs/**
- .git*
- CONTRIBUTING.md
- LICENSE
- README.md
- "!.github/workflows/pyinstaller.yml"
pull_request:
paths-ignore:
- .*
- .*/**
- demos/**
- docs/**
- .git*
- CONTRIBUTING.md
- LICENSE
- README.md
- "!.github/workflows/pyinstaller.yml"
workflow_call:
concurrency:
# When run via `workflow_call` the `github.workflow` and `github.ref` are the
# same as the parent so we need a differentiation suffix.
group: ${{ github.workflow }}-${{ github.ref }}-pyinstaller
cancel-in-progress: true
jobs:
pyinstaller:
strategy:
fail-fast: false
matrix:
include:
# https://packaging.python.org/en/latest/specifications/platform-compatibility-tags/#platform-tag
# https://pypi.org/project/pyinstaller/#files
- { os: ubuntu-20.04, target: manylinux2014_x86_64 }
- { os: macos-13, target: macosx_10_13_universal2 }
- { os: windows-latest, target: win_amd64 }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: pip install pipx
- run: pipx install pipenv
- run: pipenv install --dev -e .
- shell: pipenv run bash -e {0}
run: pipenv install pyinstaller
- shell: pipenv run bash -e {0}
run: bikeshed update
- shell: pipenv run bash -e {0}
run: pyinstaller -y --collect-data=bikeshed --name=bikeshed ./bikeshed.py # ./bikeshed/__main__.py
- uses: actions/upload-artifact@v4
with:
name: bikeshed-${{ matrix.target }}
path: dist/bikeshed