Skip to content

Commit 08ae519

Browse files
committed
ci: test with bootstrap
1 parent fb2225a commit 08ae519

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,32 @@ jobs:
4343
- macos-latest
4444
- windows-latest
4545
rust:
46-
- '1.86'
47-
- '1.87'
48-
- '1.88'
49-
- '1.89'
50-
- '1.90'
46+
- "1.86"
47+
- "1.87"
48+
- "1.88"
49+
- "1.89"
50+
- "1.90"
5151
- stable
5252
- beta
5353
- nightly
54+
rustc_bootstrap:
55+
- "0"
56+
- "1"
57+
exclude:
58+
# bootstrap is only relevant for non-nightly toolchains
59+
- os: ubuntu-latest
60+
rust: nightly
61+
rustc_bootstrap: "0"
62+
- os: macos-latest
63+
rust: nightly
64+
rustc_bootstrap: "0"
65+
- os: windows-latest
66+
rust: nightly
67+
rustc_bootstrap: "0"
5468
runs-on: ${{ matrix.os }}
5569
env:
5670
RUSTFLAGS: "-D warnings"
71+
RUSTC_BOOTSTRAP: ${{ matrix.rustc_bootstrap }}
5772
steps:
5873
- name: Checkout
5974
uses: actions/checkout@v4
@@ -63,7 +78,7 @@ jobs:
6378
with:
6479
toolchain: ${{ matrix.rust }}
6580
components: clippy
66-
cache-shared-key: ${{ matrix.os }}-${{ matrix.rust }}
81+
cache-shared-key: ${{ matrix.os }}-${{ matrix.rust }}${{ matrix.rust != 'nightly' && format('-bootstrap-%s', matrix.rustc_bootstrap) || '' }}
6782

6883
- name: Fetch cargo dependencies
6984
run: cargo fetch --verbose --locked

0 commit comments

Comments
 (0)