summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2022-09-19 14:29:51 +0100
committerMichael Williamson <mike@zwobble.org>2022-09-19 15:24:57 +0100
commit00e953c710e8977486806d69b1708c9a0d3e4440 (patch)
tree8110d4dc0a5bd9e2d06c76ca0bf7df3148d8daa2 /.github/workflows
parentf2f1c230e331d5e95f85b9ddf4dca8c70be16ea6 (diff)
Print build identifiers when not building wheels
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml15
1 files changed, 14 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 15bea58..9a9ca37 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -78,7 +78,6 @@ jobs:
needs: build_wheels_matrix
runs-on: ${{ matrix.os }}
- if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
strategy:
matrix: ${{ fromJson(needs.build_wheels_matrix.outputs.matrix) }}
@@ -99,6 +98,7 @@ jobs:
platforms: all
- name: Build wheels
+ if: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/') }}
uses: pypa/cibuildwheel@v2.9.0
env:
CIBW_ARCHS: ${{ matrix.CIBW_ARCHS }}
@@ -107,6 +107,19 @@ jobs:
CIBW_TEST_REQUIRES: "-r test-requirements.txt"
CIBW_TEST_COMMAND: "py.test {project}/tests"
+ - name: Print build identifiers
+ if: ${{ !(github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')) }}
+ run: |
+ python -m pip install cibuildwheel==2.9.0
+ python -m cibuildwheel --print-build-identifiers
+
+ 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"
+
- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl