From 39f7717dd446cd756109a1054e44e94ae9dd9b5b Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 19 Sep 2022 14:42:19 +0100 Subject: Use --only to simplify use of cibuildwheel --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index db9b61e..8e832d2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -74,7 +74,7 @@ jobs: run: python build-wheels-matrix.py build_wheels: - name: Build ${{ matrix.CIBW_BUILD }} wheel + name: Build ${{ matrix.cibw-only }} wheel needs: build_wheels_matrix @@ -84,8 +84,6 @@ jobs: runs-on: ${{ matrix.os }} env: - CIBW_ARCHS: ${{ matrix.CIBW_ARCHS }} - CIBW_BUILD: ${{ matrix.CIBW_BUILD }} CIBW_BEFORE_BUILD: "pip install cython==0.29.32 && cython {project}/jq.pyx" CIBW_TEST_REQUIRES: "-r test-requirements.txt" CIBW_TEST_COMMAND: "py.test {project}/tests" @@ -108,12 +106,14 @@ jobs: - name: Build wheels if: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/') }} uses: pypa/cibuildwheel@v2.10.1 + with: + only: ${{ matrix.cibw-only }} - name: Print build identifiers if: ${{ !(github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')) }} run: | python -m pip install cibuildwheel==2.10.1 - python -m cibuildwheel --print-build-identifiers + python -m cibuildwheel --only ${{ matrix.cibw-only }} --print-build-identifiers - uses: actions/upload-artifact@v2 with: -- cgit v1.2.3