diff options
| author | Michael Williamson <mike@zwobble.org> | 2025-12-20 14:52:57 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2025-12-20 14:52:57 +0000 |
| commit | df4e57a03adbb5d85665ecd51436e51cb913b21d (patch) | |
| tree | 04ff7ac42fa719ef7a0675c0761d38339541f422 /.github/workflows | |
| parent | 2a95eeae20cae0a5cc685e08e35691a230de62a2 (diff) | |
Extract condition for making full builds
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ed589e9..c68fb05 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,6 +2,9 @@ name: Build on: [push, pull_request, workflow_dispatch] +env: + FULL_BUILD: ${{ (github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')) }} + jobs: tests: runs-on: ${{ matrix.os }} @@ -118,7 +121,7 @@ jobs: - name: Check whether to build wheel id: should-build-wheel if: | - (github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')) || + env.FULL_BUILD == 'true' || matrix.cibw-only == 'cp310-manylinux_x86_64' || matrix.cibw-only == 'cp314t-manylinux_x86_64' || matrix.cibw-only == 'pp311-manylinux_x86_64' || @@ -179,14 +182,14 @@ jobs: CIBW_SKIP=cp38-macosx_arm64 python -m cibuildwheel --print-build-identifiers - name: Build wheels - if: ${{ (github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')) }} + if: ${{ env.FULL_BUILD == 'true' }} uses: pypa/cibuildwheel@v3.3.0 env: CIBW_ENABLE: "pypy" CIBW_SKIP: cp38-macosx_arm64 - name: Build wheels - if: ${{ !(github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')) }} + if: ${{ env.FULL_BUILD != 'true' }} uses: pypa/cibuildwheel@v3.3.0 with: only: cp310-macosx_arm64 |
