Skip to content

Commit

Permalink
Custom platform selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Kijewski committed Oct 9, 2024
1 parent 9172306 commit 9668383
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build_linux_v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ name: Build Wheels (Linux v3)

on:
workflow_dispatch:
inputs: {}
inputs:
platform:
required: true
default: x86_64 i686 aarch64 ppc64le s390x armv7l

jobs:
define-matrix:
Expand All @@ -24,7 +27,7 @@ jobs:

- id: set-matrix
run: |
TARGETS="$(python -m cibuildwheel --archs "x86_64 i686 aarch64 ppc64le armv7l" --print-build-identifiers)"
TARGETS="$(python -m cibuildwheel --archs "${{ github.event.inputs.platform }}" --print-build-identifiers)"
echo 'matrix=["'$(echo $TARGETS | sed -e 's/ /","/g')'"]' >> $GITHUB_OUTPUT
env:
CIBW_BUILD_FRONTEND: build
Expand Down

0 comments on commit 9668383

Please sign in to comment.