From a6b7cd6c208843b66fdce37044bc8a4081ad9eb8 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 19 Sep 2022 14:49:23 +0100 Subject: Use cibuildwheel --print-build-identifiers to generate matrix --- .github/workflows/build.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8e832d2..e5d405f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -71,7 +71,19 @@ jobs: run: python -m pip install cibuildwheel==2.10.1 - id: set-matrix - run: python build-wheels-matrix.py + env: + CIBW_ARCHS_LINUX: "auto64 aarch64" + CIBW_ARCHS_MACOS: "auto64" + run: | + MATRIX=$( + { + cibuildwheel --print-build-identifiers --platform linux \ + | sed 's/.*/{"cibw-only": "&", "os": "ubuntu-20.04"}/' \ + && cibuildwheel --print-build-identifiers --platform macos \ + | sed 's/.*/{"cibw-only": "&", "os": "macos-10.15" }/' + } | jq --slurp --compact-output '{"include": .}' + ) + echo ::set-output name=matrix::"$MATRIX" build_wheels: name: Build ${{ matrix.cibw-only }} wheel -- cgit v1.2.3