Skip to content

Commit

Permalink
Update pyinstaller.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbhmr authored Jul 27, 2024
1 parent bfebfe9 commit d8b6022
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/pyinstaller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-13, macos-latest, windows-latest]
include:
# https://packaging.python.org/en/latest/specifications/platform-compatibility-tags/#platform-tag
# target=$(python -c 'import sysconfig; print(sysconfig.get_platform().replace("-", "_"))')
- { os: ubuntu-latest, target: linux_x86_64 }
- { os: macos-latest, target: macosx_10.9_universal2 }
- { os: windows-latest, target: win_amd64 }
defaults:
run:
shell: bash
Expand All @@ -52,12 +57,7 @@ jobs:
- run: pip install pyinstaller
- run: bikeshed update
- run: pyinstaller -y --collect-all=bikeshed --name=bikeshed ./bikeshed.py
# https://packaging.python.org/en/latest/specifications/platform-compatibility-tags/#platform-tag
- id: get-target
run: |
target=$(python -c 'import sysconfig; print(sysconfig.get_platform().replace("-", "_"))')
echo "target=$target" >> "$GITHUB_OUTPUT"
- uses: actions/upload-artifact@v4
with:
name: bikeshed-${{ steps.get-target.outputs.target }}
name: bikeshed-${{ matrix.target }}
path: dist/bikeshed

0 comments on commit d8b6022

Please sign in to comment.