From 8382f711bb7100ea4473438889264a4b3e5e475a Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Thu, 22 Feb 2024 15:06:54 -0600 Subject: [PATCH] Allow skipping binary builds with `no-build` label (#1882) It feels expensive to build binaries on changes where it's not critical. --- .github/workflows/build-binaries.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build-binaries.yml b/.github/workflows/build-binaries.yml index cdcfbbbde..e6684919a 100644 --- a/.github/workflows/build-binaries.yml +++ b/.github/workflows/build-binaries.yml @@ -34,6 +34,7 @@ env: jobs: sdist: + if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-build') }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -59,6 +60,7 @@ jobs: path: dist macos-x86_64: + if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-build') }} runs-on: macos-latest steps: - uses: actions/checkout@v4 @@ -97,6 +99,7 @@ jobs: *.sha256 macos-universal: + if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-build') }} runs-on: macos-latest steps: - uses: actions/checkout@v4 @@ -139,6 +142,7 @@ jobs: *.sha256 windows: + if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-build') }} runs-on: windows-latest strategy: matrix: @@ -187,6 +191,7 @@ jobs: *.sha256 linux: + if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-build') }} runs-on: ubuntu-latest strategy: matrix: @@ -255,6 +260,7 @@ jobs: *.sha256 linux-arm: + if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-build') }} runs-on: ubuntu-latest strategy: matrix: @@ -324,6 +330,7 @@ jobs: # Like `linux-arm`, but use `--no-default-features --features flate2/rust_backend` when # building uv. linux-s390x: + if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-build') }} runs-on: ubuntu-latest strategy: matrix: @@ -388,6 +395,7 @@ jobs: # Like `linux-arm`, but use `--no-default-features --features flate2/rust_backend` when # building uv, and install the `gcc-powerpc64-linux-gnu` package. linux-powerpc: + if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-build') }} runs-on: ubuntu-latest strategy: matrix: @@ -459,6 +467,7 @@ jobs: *.sha256 musllinux: + if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-build') }} runs-on: ubuntu-latest strategy: matrix: @@ -517,6 +526,7 @@ jobs: *.sha256 musllinux-cross: + if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-build') }} runs-on: ubuntu-latest strategy: matrix: