Skip to content

Commit ac1d9bb

Browse files
committed
ci: pin nightly compiler version
1 parent e7f44a6 commit ac1d9bb

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

.github/workflows/rust.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ on: [push, pull_request]
33
name: Continuous integration
44

55
jobs:
6+
Prepare:
7+
runs-on: ubuntu-24.04
8+
outputs:
9+
nightly_version: ${{ steps.read_toolchain.outputs.nightly_version }}
10+
steps:
11+
- name: "Checkout repo"
12+
uses: actions/checkout@v4
13+
- name: "Read nightly version"
14+
id: read_toolchain
15+
run: echo "nightly_version=$(cat nightly-version)" >> $GITHUB_OUTPUT
16+
617
Fuzz:
718
name: Fuzz
819
runs-on: ubuntu-latest
@@ -29,6 +40,7 @@ jobs:
2940

3041
Nightly:
3142
name: Nightly - Bench + Docs + Fmt
43+
needs: Prepare
3244
runs-on: ubuntu-latest
3345
steps:
3446
- name: Checkout Crate
@@ -37,7 +49,7 @@ jobs:
3749
uses: actions-rs/toolchain@v1
3850
with:
3951
profile: minimal
40-
toolchain: nightly
52+
toolchain: ${{ needs.Prepare.outputs.nightly_version }}
4153
override: true
4254
- name: Running benchmarks
4355
env:
@@ -55,13 +67,14 @@ jobs:
5567

5668
Tests:
5769
name: Tests
70+
needs: Prepare
5871
runs-on: ubuntu-latest
5972
strategy:
6073
matrix:
6174
include:
6275
- rust: stable
6376
- rust: beta
64-
- rust: nightly
77+
- rust: ${{ needs.Prepare.outputs.nightly_version }}
6578
- rust: 1.41.1
6679
- rust: 1.47
6780
DO_NO_STD: true
@@ -81,6 +94,7 @@ jobs:
8194
run: ./contrib/test.sh
8295

8396
Embedded:
97+
needs: Prepare
8498
runs-on: ubuntu-latest
8599
steps:
86100
- name: Checkout
@@ -91,7 +105,7 @@ jobs:
91105
uses: actions-rs/toolchain@v1
92106
with:
93107
profile: minimal
94-
toolchain: nightly
108+
toolchain: ${{ needs.Prepare.outputs.nightly_version }}
95109
override: true
96110
components: rust-src
97111
target: thumbv7m-none-eabi

nightly-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nightly-2025-06-20

0 commit comments

Comments
 (0)