Skip to content

Commit a494de8

Browse files
committed
update rust installers #344
1 parent dd8dcf1 commit a494de8

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,19 @@ jobs:
1717
uses: actions/checkout@v3
1818

1919
- name: Install stable toolchain
20-
id: install-rust
21-
uses: actions-rs/toolchain@v1
22-
with:
23-
profile: minimal
24-
# Set Rust version here!
25-
toolchain: 1.70
26-
override: true
27-
components: rustfmt, clippy
20+
run: rustup toolchain install 1.70 --profile minimal
2821

29-
- name: Install nightly toolchain
30-
id: install-rust-nightly
31-
uses: actions-rs/toolchain@v1
32-
with:
33-
toolchain: nightly
34-
profile: minimal
35-
components: rustfmt
22+
- name: Install nightly toolchain for fmt
23+
run: rustup toolchain install nightly --component rustfmt --profile minimal
24+
25+
- name: Install cargo-make
26+
run: cargo install cargo-make
3627

3728
# Caching for Rust files. Must be called after installing Rust toolchain.
3829
# See https://github.com/Swatinem/rust-cache for more information.
3930
- name: Set Up Cache
4031
uses: Swatinem/rust-cache@v2
4132

42-
- name: Install cargo-make
43-
uses: actions-rs/cargo@v1
44-
with:
45-
command: install
46-
args: --debug cargo-make
47-
4833
- name: Run full CI (fmt, clippy, build, test, doctest, docs)
4934
run: cargo make ci
5035

0 commit comments

Comments
 (0)