File tree 1 file changed +13
-5
lines changed
1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -46,17 +46,25 @@ jobs:
46
46
with :
47
47
ref : ${{ github.event.pull_request.head.sha }}
48
48
49
+ - name : Install rustup-toolchain-install-master
50
+ run :
cargo install [email protected]
51
+
52
+ # Install a pinned rustc commit to avoid surprises
49
53
- name : Install Rust toolchain
50
54
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
+
59
+ # Emulate a nightly toolchain, because the toolchain installed above does not have "nightly"
60
+ # in its version string.
61
+ - name : Emulate a nightly toolchain
62
+ run : echo "RUSTC_BOOTSTRAP=1" >> $GITHUB_ENV
63
+
54
64
# https://github.com/actions-rust-lang/setup-rust-toolchain/blob/main/rust.json
55
65
- name : Install Rust Problem Matcher
56
66
run : echo "::add-matcher::.github/rust.json"
57
67
58
- # We don't cache this job, as it will be invalidated every day due to nightly usage
59
-
60
68
- name : Test
61
69
run : cargo test --features sysroot-abi -p proc-macro-srv -p proc-macro-srv-cli -p proc-macro-api -- --quiet
62
70
You can’t perform that action at this time.
0 commit comments