Skip to content

Commit

Permalink
Dropping env as it doesn't work on runs-on it seems
Browse files Browse the repository at this point in the history
  • Loading branch information
dvmarcilio committed Jul 12, 2024
1 parent 71040f0 commit 6069759
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/polyglot_release.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
name: Release Polyglot Piranha
on: workflow_dispatch
env:
# We suspect we need 20.04 due to glibc not being new enough on Debian/devpod.
OS_JSON: '{"linux-x86":"ubuntu-20.04","linux-arm":"ubuntu-latest","macos-arm":"macos-latest"}'
# many_linux_2_28 is compatible with Debian 10: https://github.com/pypa/manylinux/tree/8e297ac3813be400a9a244a2828c18d3dd7e6969?tab=readme-ov-file#manylinux_2_28-almalinux-8-based
MATURIN_TARGET_JSON: '{"linux-x86":"manylinux_2_28","linux-arm":"aarch64-unknown-linux-gnu","macos-arm":"universal2-apple-darwin"}'
jobs:
release:
strategy:
matrix:
target: [linux-x86, linux-arm, macos-arm]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
runs-on: ${{ fromJSON(env.OS_JSON)[matrix.target] }}
# We suspect we need 20.04 due to glibc not being new enough on Debian/devpod.
runs-on: ${{ fromJSON('{"linux-x86":"ubuntu-20.04","linux-arm":"ubuntu-latest","macos-arm":"macos-latest"}')[matrix.target] }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand All @@ -37,8 +33,9 @@ jobs:
rustup target add aarch64-apple-darwin
- name: Build wheel with Maturin ${{ matrix.target }}
if: ${{ matrix.target == 'linux-x86' }}
# many_linux_2_28 is compatible with Debian 10: https://github.com/pypa/manylinux/tree/8e297ac3813be400a9a244a2828c18d3dd7e6969?tab=readme-ov-file#manylinux_2_28-almalinux-8-based
run: |
maturin build --release -o dist --target ${{ fromJSON(env.MATURIN_TARGET_JSON)[matrix.target] }} -i ${{ matrix.python-version }}
maturin build --release -o dist --target ${{ fromJSON('{"linux-x86":"manylinux_2_28","linux-arm":"aarch64-unknown-linux-gnu","macos-arm":"universal2-apple-darwin"}')[matrix.target] }} -i ${{ matrix.python-version }}
- name: Build source distribution
if: ${{ matrix.target == 'linux-x86' }}
run: |
Expand Down

0 comments on commit 6069759

Please sign in to comment.