Skip to content

Commit

Permalink
Adjusted generate-wheels-matrix -> Use older MacOS for non-ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
JHKru committed Jul 23, 2024
1 parent 800af25 commit 59fa84b
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,22 @@ jobs:
run: pipx install cibuildwheel==2.19.1
- id: set-matrix
run: |
MATRIX=$(
{
cibuildwheel --print-build-identifiers --platform linux \
| jq -nRc '{"dist": inputs, "os": "ubuntu-latest"}' \
&& cibuildwheel --print-build-identifiers --platform macos \
| jq -nRc '{"dist": inputs, "os": "macos-latest"}' \
&& cibuildwheel --print-build-identifiers --platform windows \
| jq -nRc '{"dist": inputs, "os": "windows-latest"}'
} | jq -sc
)
MATRIX=$(
{
cibuildwheel --print-build-identifiers --platform linux \
| jq -nRc '{"dist": inputs, "os": "ubuntu-latest"}' \
&& cibuildwheel --print-build-identifiers --platform macos \
| jq -nRc '
if (inputs | contains("x86_64")) then
{"dist": inputs, "os": "macos-13"}
else
{"dist": inputs, "os": "macos-latest"}
end
' \
&& cibuildwheel --print-build-identifiers --platform windows \
| jq -nRc '{"dist": inputs, "os": "windows-latest"}'
} | jq -sc
)
echo "include=$MATRIX" | tee -a $GITHUB_OUTPUT
env:
CIBW_ARCHS_LINUX: "x86_64"
Expand Down

0 comments on commit 59fa84b

Please sign in to comment.