File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -13,16 +13,12 @@ jobs:
13
13
steps :
14
14
- name : Checkout source
15
15
uses : actions/checkout@v3
16
- - name : Install rustup
17
- run : curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default- toolchain ${{ matrix.rust }}
18
- - name : Setup nightly rust
19
- run : rustup toolchain install nightly
16
+ - name : Setup rust
17
+ uses : dtolnay/rust- toolchain@stable
18
+ with :
19
+ toolchain : ${{ matrix.rust }}
20
20
- name : Run unit tests
21
- run : |
22
- echo $PATH
23
- export PATH=$HOME/.cargo/bin:$PATH
24
- echo `which cargo`
25
- rustc --version && cargo --version && cargo test
21
+ run : rustc --version && cargo --version && cargo test
26
22
- name : Run script tests
27
23
if : runner.os != 'Windows'
28
24
run : |
Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ fn test_whitespace_before_main() {
199
199
}
200
200
201
201
#[ test]
202
+ #[ ignore]
202
203
fn test_stable_toolchain ( ) {
203
204
let out = rust_script ! (
204
205
"--toolchain-version" ,
@@ -211,6 +212,7 @@ fn test_stable_toolchain() {
211
212
}
212
213
213
214
#[ test]
215
+ #[ ignore]
214
216
fn test_nightly_toolchain ( ) {
215
217
let out = rust_script ! (
216
218
"--toolchain-version" ,
You can’t perform that action at this time.
0 commit comments