Skip to content

Commit bb87c2c

Browse files
committed
Pin rustc used for the proc-macro-src CI job
1 parent bdd0491 commit bb87c2c

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,20 @@ jobs:
4646
with:
4747
ref: ${{ github.event.pull_request.head.sha }}
4848

49+
- name: Install rustup-toolchain-install-master
50+
run: cargo install rustup-toolchain-install-master --rev 21e67dec7cc631b796aa1c91df781b5d410fb994
51+
52+
# Install a pinned rustc commit to avoid surprises
4953
- name: Install Rust toolchain
5054
run: |
51-
rustup update --no-self-update nightly
52-
rustup default nightly
53-
rustup component add --toolchain nightly rust-src rustfmt
55+
RUSTC_VERSION=`cat rust-version`
56+
rustup-toolchain-install-master ${RUSTC_VERSION} -c rust-src -c rustfmt
57+
rustup default ${RUSTC_VERSION}
58+
5459
# https://github.com/actions-rust-lang/setup-rust-toolchain/blob/main/rust.json
5560
- name: Install Rust Problem Matcher
5661
run: echo "::add-matcher::.github/rust.json"
5762

58-
# We don't cache this job, as it will be invalidated every day due to nightly usage
59-
6063
- name: Test
6164
run: cargo test --features sysroot-abi -p proc-macro-srv -p proc-macro-srv-cli -p proc-macro-api -- --quiet
6265

0 commit comments

Comments
 (0)