Merge pull request #3217 from davidhewitt/build-full

ci: enable full builds with a label
This commit is contained in:
messense 2023-06-08 05:16:31 +00:00 committed by GitHub
commit 93f7694e95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ jobs:
CARGO_BUILD_TARGET: ${{ matrix.platform.rust-target }} CARGO_BUILD_TARGET: ${{ matrix.platform.rust-target }}
build-pr: build-pr:
if: github.event_name == 'pull_request' if: ${{ !contains(github.event.pull_request.labels.*.name, 'CI-build-full') && github.event_name == 'pull_request' }}
name: python${{ matrix.python-version }}-${{ matrix.platform.python-architecture }} ${{ matrix.platform.os }} rust-${{ matrix.rust }} name: python${{ matrix.python-version }}-${{ matrix.platform.python-architecture }} ${{ matrix.platform.os }} rust-${{ matrix.rust }}
needs: [fmt] needs: [fmt]
uses: ./.github/workflows/build.yml uses: ./.github/workflows/build.yml
@ -173,7 +173,7 @@ jobs:
} }
] ]
build-full: build-full:
if: ${{ github.event_name != 'pull_request' && github.ref != 'refs/heads/main' }} if: ${{ contains(github.event.pull_request.labels.*.name, 'CI-build-full') || (github.event_name != 'pull_request' && github.ref != 'refs/heads/main') }}
name: python${{ matrix.python-version }}-${{ matrix.platform.python-architecture }} ${{ matrix.platform.os }} rust-${{ matrix.rust }} name: python${{ matrix.python-version }}-${{ matrix.platform.python-architecture }} ${{ matrix.platform.os }} rust-${{ matrix.rust }}
needs: [fmt] needs: [fmt]
uses: ./.github/workflows/build.yml uses: ./.github/workflows/build.yml