Skip to content

Commit

Permalink
Fix build_all conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
dstansby committed Aug 23, 2024
1 parent 22abbdc commit ca42943
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/wheel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,16 @@ jobs:
matrix:
# macos-12 is an intel runner, macos-14 is a arm64 runner
os: [ubuntu-latest, windows-latest, macos-12, macos-14]
build_all:
- ${{ (github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')) || contains(github.event.pull_request.labels.*.name, 'test all wheels')}}
# Build all wheels on either:
# - tagged release
# - pull request opened with "test all wheels" label
# - pull requests when "test all wheels" label is added
build_all: |
${{
(github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v'))
|| contains(github.event.pull_request.labels.*.name, 'test all wheels')
|| (github.event.action == 'labeled' && github.event.label.name == 'test all wheels')
}}
env:
CIBW_TEST_COMMAND: python -c "import numcodecs"
CIBW_BUILD: "cp310-* cp311-* cp312-*"
Expand Down

0 comments on commit ca42943

Please sign in to comment.