From bfebfe9bc25f69d7f4552c947441a0d6ed229148 Mon Sep 17 00:00:00 2001 From: Jacob Hummer Date: Sat, 27 Jul 2024 13:21:15 -0500 Subject: [PATCH] Update pyinstaller.yml --- .github/workflows/pyinstaller.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pyinstaller.yml b/.github/workflows/pyinstaller.yml index ffaab38b90..417b78d224 100644 --- a/.github/workflows/pyinstaller.yml +++ b/.github/workflows/pyinstaller.yml @@ -34,12 +34,7 @@ jobs: 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 } + os: [ubuntu-20.04, macos-13, macos-latest, windows-latest] defaults: run: shell: bash @@ -57,7 +52,12 @@ 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-${{ matrix.target }} + name: bikeshed-${{ steps.get-target.outputs.target }} path: dist/bikeshed