File tree Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -89,11 +89,15 @@ jobs:
8989 steps :
9090 - uses : actions/checkout@v3
9191 - name : Install latest Rust stable toolchain
92- uses : actions-rs/toolchain@v1
93- with :
94- toolchain : stable
95- default : true
96- target : ${{ matrix.config.target }}
92+ shell : bash
93+ run : |
94+ rustup toolchain install stable
95+ rustup default stable
96+
97+ - name : Install target
98+ if : matrix.config.target != ''
99+ shell : bash
100+ run : rustup target add --toolchain stable ${{ matrix.config.target }}
97101
98102 - name : set the release version (main)
99103 shell : bash
Original file line number Diff line number Diff line change @@ -21,11 +21,10 @@ jobs:
2121 steps :
2222 - uses : actions/checkout@v3
2323 - name : Install latest Rust stable toolchain
24- uses : actions-rs/toolchain@v1
25- with :
26- toolchain : stable
27- default : true
28- components : clippy, rustfmt
24+ shell : bash
25+ run : |
26+ rustup toolchain install stable --component clippy --component rustfmt
27+ rustup default stable
2928
3029 - uses : Swatinem/rust-cache@v2
3130 with :
You can’t perform that action at this time.
0 commit comments