Skip to content

Commit 219b232

Browse files
Use stable Rust for development builds (#20601)
Development binaries and tests currently install `nightly-2026-07-13` solely to enable unstable Cargo features, which leaves development and release builds on different compilers. Use the repository's stable toolchain with `RUSTC_BOOTSTRAP=1` for the affected jobs so checksum freshness and aborting test profiles remain available without making nightly the development or source-distribution toolchain. Install the cross-compilation targets explicitly when the stable toolchain is inferred from `rust-toolchain.toml`.
1 parent 8da71e4 commit 219b232

2 files changed

Lines changed: 49 additions & 48 deletions

File tree

‎.github/workflows/build-dev-binaries.yml‎

Lines changed: 42 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
name: "linux libc"
2020
timeout-minutes: 10
2121
runs-on: github-ubuntu-24.04-x86_64-8
22+
env:
23+
RUSTC_BOOTSTRAP: 1
2224
steps:
2325
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2426
with:
@@ -28,18 +30,16 @@ jobs:
2830
run: ./scripts/install-mold.sh
2931

3032
- name: "Install Rust toolchain"
31-
run: rustup toolchain install nightly-2026-07-13 --profile minimal
33+
run: rustup toolchain install --profile minimal
3234

3335
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
34-
env:
35-
RUSTUP_TOOLCHAIN: nightly-2026-07-13
3636
with:
3737
prefix-key: v1-rust-workspace
3838
cache-workspace-crates: "true"
3939
save-if: ${{ inputs.save-rust-cache == 'true' }}
4040

4141
- name: "Build"
42-
run: cargo +nightly-2026-07-13 build --profile no-debug-nightly -Z checksum-freshness
42+
run: cargo build --profile no-debug-nightly -Z checksum-freshness
4343

4444
- name: "Upload binary"
4545
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
@@ -54,6 +54,8 @@ jobs:
5454
name: "linux aarch64"
5555
timeout-minutes: 10
5656
runs-on: github-ubuntu-24.04-aarch64-4
57+
env:
58+
RUSTC_BOOTSTRAP: 1
5759
steps:
5860
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
5961
with:
@@ -63,18 +65,16 @@ jobs:
6365
run: ./scripts/install-mold.sh
6466

6567
- name: "Install Rust toolchain"
66-
run: rustup toolchain install nightly-2026-07-13 --profile minimal
68+
run: rustup toolchain install --profile minimal
6769

6870
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
69-
env:
70-
RUSTUP_TOOLCHAIN: nightly-2026-07-13
7171
with:
7272
prefix-key: v1-rust-workspace
7373
cache-workspace-crates: "true"
7474
save-if: ${{ inputs.save-rust-cache == 'true' }}
7575

7676
- name: "Build"
77-
run: cargo +nightly-2026-07-13 build --profile no-debug-nightly -Z checksum-freshness
77+
run: cargo build --profile no-debug-nightly -Z checksum-freshness
7878

7979
- name: "Upload binary"
8080
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
@@ -89,6 +89,8 @@ jobs:
8989
name: "linux armv7 gnueabihf"
9090
timeout-minutes: 15
9191
runs-on: github-ubuntu-24.04-x86_64-8
92+
env:
93+
RUSTC_BOOTSTRAP: 1
9294
steps:
9395
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
9496
with:
@@ -103,11 +105,11 @@ jobs:
103105
sudo apt-get install gcc-arm-linux-gnueabihf
104106
105107
- name: "Install Rust toolchain"
106-
run: rustup toolchain install nightly-2026-07-13 --profile minimal --target armv7-unknown-linux-gnueabihf
108+
run: |
109+
rustup toolchain install --profile minimal
110+
rustup target add armv7-unknown-linux-gnueabihf
107111
108112
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
109-
env:
110-
RUSTUP_TOOLCHAIN: nightly-2026-07-13
111113
with:
112114
prefix-key: v1-rust-workspace
113115
cache-workspace-crates: "true"
@@ -116,7 +118,7 @@ jobs:
116118
- name: "Build"
117119
env:
118120
CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER: arm-linux-gnueabihf-gcc
119-
run: cargo +nightly-2026-07-13 build --profile no-debug-nightly -Z checksum-freshness --target armv7-unknown-linux-gnueabihf --bin uv --bin uvx
121+
run: cargo build --profile no-debug-nightly -Z checksum-freshness --target armv7-unknown-linux-gnueabihf --bin uv --bin uvx
120122

121123
- name: "Upload binary"
122124
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
@@ -131,6 +133,8 @@ jobs:
131133
name: "linux musl"
132134
timeout-minutes: 10
133135
runs-on: github-ubuntu-24.04-x86_64-8
136+
env:
137+
RUSTC_BOOTSTRAP: 1
134138
steps:
135139
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
136140
with:
@@ -143,18 +147,18 @@ jobs:
143147
run: sudo apt-get install musl-tools
144148

145149
- name: "Install Rust toolchain"
146-
run: rustup toolchain install nightly-2026-07-13 --profile minimal --target x86_64-unknown-linux-musl
150+
run: |
151+
rustup toolchain install --profile minimal
152+
rustup target add x86_64-unknown-linux-musl
147153
148154
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
149-
env:
150-
RUSTUP_TOOLCHAIN: nightly-2026-07-13
151155
with:
152156
prefix-key: v1-rust-workspace
153157
cache-workspace-crates: "true"
154158
save-if: ${{ inputs.save-rust-cache == 'true' }}
155159

156160
- name: "Build"
157-
run: cargo +nightly-2026-07-13 build --profile no-debug-nightly -Z checksum-freshness --target x86_64-unknown-linux-musl --bin uv --bin uvx
161+
run: cargo build --profile no-debug-nightly -Z checksum-freshness --target x86_64-unknown-linux-musl --bin uv --bin uvx
158162

159163
- name: "Upload binary"
160164
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
@@ -169,24 +173,24 @@ jobs:
169173
name: "macos aarch64"
170174
timeout-minutes: 10
171175
runs-on: macos-14 # github-macos-14-aarch64-3
176+
env:
177+
RUSTC_BOOTSTRAP: 1
172178
steps:
173179
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
174180
with:
175181
persist-credentials: false
176182

177183
- name: "Install Rust toolchain"
178-
run: rustup toolchain install nightly-2026-07-13 --profile minimal
184+
run: rustup toolchain install --profile minimal
179185

180186
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
181-
env:
182-
RUSTUP_TOOLCHAIN: nightly-2026-07-13
183187
with:
184188
prefix-key: v1-rust-workspace
185189
cache-workspace-crates: "true"
186190
save-if: ${{ inputs.save-rust-cache == 'true' }}
187191
cache-bin: false
188192
- name: "Build"
189-
run: cargo +nightly-2026-07-13 build --profile no-debug-nightly -Z checksum-freshness --bin uv --bin uvx
193+
run: cargo build --profile no-debug-nightly -Z checksum-freshness --bin uv --bin uvx
190194

191195
- name: "Upload binary"
192196
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
@@ -201,24 +205,24 @@ jobs:
201205
name: "macos x86_64"
202206
timeout-minutes: 10
203207
runs-on: macos-latest-large # github-macos-14-x86_64-12
208+
env:
209+
RUSTC_BOOTSTRAP: 1
204210
steps:
205211
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
206212
with:
207213
persist-credentials: false
208214

209215
- name: "Install Rust toolchain"
210-
run: rustup toolchain install nightly-2026-07-13 --profile minimal
216+
run: rustup toolchain install --profile minimal
211217

212218
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
213-
env:
214-
RUSTUP_TOOLCHAIN: nightly-2026-07-13
215219
with:
216220
prefix-key: v1-rust-workspace
217221
cache-workspace-crates: "true"
218222
save-if: ${{ inputs.save-rust-cache == 'true' }}
219223
cache-bin: false
220224
- name: "Build"
221-
run: cargo +nightly-2026-07-13 build --profile no-debug-nightly -Z checksum-freshness --bin uv --bin uvx
225+
run: cargo build --profile no-debug-nightly -Z checksum-freshness --bin uv --bin uvx
222226

223227
- name: "Upload binary"
224228
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
@@ -233,6 +237,8 @@ jobs:
233237
name: "windows x86_64"
234238
timeout-minutes: 10
235239
runs-on: windows-latest
240+
env:
241+
RUSTC_BOOTSTRAP: 1
236242
steps:
237243
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
238244
with:
@@ -248,11 +254,9 @@ jobs:
248254
249255
- name: "Install Rust toolchain"
250256
working-directory: ${{ env.UV_WORKSPACE }}
251-
run: rustup toolchain install nightly-2026-07-13 --profile minimal
257+
run: rustup toolchain install --profile minimal
252258

253259
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
254-
env:
255-
RUSTUP_TOOLCHAIN: nightly-2026-07-13
256260
with:
257261
prefix-key: v1-rust-workspace
258262
workspaces: ${{ env.UV_WORKSPACE }}
@@ -261,7 +265,7 @@ jobs:
261265

262266
- name: "Build"
263267
working-directory: ${{ env.UV_WORKSPACE }}
264-
run: cargo +nightly-2026-07-13 build --profile no-debug-nightly -Z checksum-freshness --bin uv --bin uvx
268+
run: cargo build --profile no-debug-nightly -Z checksum-freshness --bin uv --bin uvx
265269

266270
- name: "Upload binary"
267271
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
@@ -276,6 +280,8 @@ jobs:
276280
name: "windows aarch64"
277281
timeout-minutes: 10
278282
runs-on: windows-11-arm
283+
env:
284+
RUSTC_BOOTSTRAP: 1
279285
steps:
280286
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
281287
with:
@@ -291,11 +297,9 @@ jobs:
291297
292298
- name: "Install Rust toolchain"
293299
working-directory: ${{ env.UV_WORKSPACE }}
294-
run: rustup toolchain install nightly-2026-07-13 --profile minimal
300+
run: rustup toolchain install --profile minimal
295301

296302
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
297-
env:
298-
RUSTUP_TOOLCHAIN: nightly-2026-07-13
299303
with:
300304
prefix-key: v1-rust-workspace
301305
workspaces: ${{ env.UV_WORKSPACE }}
@@ -304,7 +308,7 @@ jobs:
304308

305309
- name: "Build"
306310
working-directory: ${{ env.UV_WORKSPACE }}
307-
run: cargo +nightly-2026-07-13 build --profile no-debug-nightly -Z checksum-freshness --bin uv --bin uvx
311+
run: cargo build --profile no-debug-nightly -Z checksum-freshness --bin uv --bin uvx
308312

309313
- name: "Upload binary"
310314
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
@@ -346,6 +350,8 @@ jobs:
346350
name: "android aarch64"
347351
timeout-minutes: 10
348352
runs-on: github-ubuntu-24.04-x86_64-8
353+
env:
354+
RUSTC_BOOTSTRAP: 1
349355
steps:
350356
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
351357
with:
@@ -375,18 +381,18 @@ jobs:
375381
fi
376382
377383
- name: "Install Rust toolchain"
378-
run: rustup toolchain install nightly-2026-07-13 --profile minimal --target aarch64-linux-android
384+
run: |
385+
rustup toolchain install --profile minimal
386+
rustup target add aarch64-linux-android
379387
380388
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
381-
env:
382-
RUSTUP_TOOLCHAIN: nightly-2026-07-13
383389
with:
384390
prefix-key: v1-rust-workspace
385391
cache-workspace-crates: "true"
386392
save-if: ${{ inputs.save-rust-cache == 'true' }}
387393

388394
- name: "Build"
389-
run: cargo +nightly-2026-07-13 build --profile no-debug-nightly -Z checksum-freshness --target aarch64-linux-android --bin uv --bin uvx
395+
run: cargo build --profile no-debug-nightly -Z checksum-freshness --target aarch64-linux-android --bin uv --bin uvx
390396

391397
- name: "Upload binary"
392398
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1

‎.github/workflows/test.yml‎

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ env:
1717
CARGO_NET_RETRY: 10
1818
CARGO_TERM_COLOR: always
1919
PYTHON_VERSION: "3.12"
20+
RUSTC_BOOTSTRAP: 1
2021
RUSTUP_MAX_RETRIES: 10
2122

2223
jobs:
@@ -37,11 +38,9 @@ jobs:
3738
run: ./scripts/install-mold.sh
3839

3940
- name: "Install Rust toolchain"
40-
run: rustup toolchain install nightly-2026-07-13 --profile minimal
41+
run: rustup toolchain install --profile minimal
4142

4243
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
43-
env:
44-
RUSTUP_TOOLCHAIN: nightly-2026-07-13
4544
with:
4645
prefix-key: v1-rust-workspace
4746
cache-workspace-crates: "true"
@@ -106,7 +105,7 @@ jobs:
106105
INSTA_UPDATE: new
107106
INSTA_PENDING_DIR: ${{ github.workspace }}/pending-snapshots
108107
run: |
109-
cargo +nightly-2026-07-13 nextest run \
108+
cargo nextest run \
110109
--cargo-profile fast-build-nightly \
111110
-Z panic-abort-tests \
112111
-Z checksum-freshness \
@@ -145,11 +144,9 @@ jobs:
145144
persist-credentials: false
146145

147146
- name: "Install Rust toolchain"
148-
run: rustup toolchain install nightly-2026-07-13 --profile minimal
147+
run: rustup toolchain install --profile minimal
149148

150149
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
151-
env:
152-
RUSTUP_TOOLCHAIN: nightly-2026-07-13
153150
with:
154151
prefix-key: v1-rust-workspace
155152
cache-workspace-crates: "true"
@@ -197,7 +194,7 @@ jobs:
197194
INSTA_UPDATE: new
198195
INSTA_PENDING_DIR: ${{ github.workspace }}/pending-snapshots
199196
run: |
200-
cargo +nightly-2026-07-13 nextest run \
197+
cargo nextest run \
201198
--cargo-profile fast-build-nightly \
202199
-Z panic-abort-tests \
203200
-Z checksum-freshness \
@@ -255,11 +252,9 @@ jobs:
255252

256253
- name: "Install Rust toolchain"
257254
working-directory: ${{ env.UV_WORKSPACE }}
258-
run: rustup toolchain install nightly-2026-07-13 --profile minimal
255+
run: rustup toolchain install --profile minimal
259256

260257
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
261-
env:
262-
RUSTUP_TOOLCHAIN: nightly-2026-07-13
263258
with:
264259
prefix-key: v1-rust-workspace
265260
workspaces: ${{ env.UV_WORKSPACE }}
@@ -298,7 +293,7 @@ jobs:
298293
INSTA_PENDING_DIR: ${{ github.workspace }}/pending-snapshots
299294
shell: bash
300295
run: |
301-
cargo +nightly-2026-07-13 nextest run \
296+
cargo nextest run \
302297
--cargo-profile fast-build-nightly \
303298
-Z panic-abort-tests \
304299
-Z checksum-freshness \

0 commit comments

Comments
 (0)