Skip to content

Commit

Permalink
Allow skipping binary builds with no-build label (astral-sh#1882)
Browse files Browse the repository at this point in the history
It feels expensive to build binaries on changes where it's not critical.
  • Loading branch information
zanieb authored Feb 22, 2024
1 parent 2fa67ea commit 8382f71
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -139,6 +142,7 @@ jobs:
*.sha256
windows:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-build') }}
runs-on: windows-latest
strategy:
matrix:
Expand Down Expand Up @@ -187,6 +191,7 @@ jobs:
*.sha256
linux:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-build') }}
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -255,6 +260,7 @@ jobs:
*.sha256
linux-arm:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-build') }}
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -459,6 +467,7 @@ jobs:
*.sha256
musllinux:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-build') }}
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -517,6 +526,7 @@ jobs:
*.sha256
musllinux-cross:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-build') }}
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down

0 comments on commit 8382f71

Please sign in to comment.