Skip to content

Commit

Permalink
update rust installers #344
Browse files Browse the repository at this point in the history
  • Loading branch information
marsella committed Jun 21, 2023
1 parent dd8dcf1 commit a494de8
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,34 +17,19 @@ jobs:
uses: actions/checkout@v3

- name: Install stable toolchain
id: install-rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
# Set Rust version here!
toolchain: 1.70
override: true
components: rustfmt, clippy
run: rustup toolchain install 1.70 --profile minimal

- name: Install nightly toolchain
id: install-rust-nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
components: rustfmt
- name: Install nightly toolchain for fmt
run: rustup toolchain install nightly --component rustfmt --profile minimal

- name: Install cargo-make
run: cargo install cargo-make

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

- name: Install cargo-make
uses: actions-rs/cargo@v1
with:
command: install
args: --debug cargo-make

- name: Run full CI (fmt, clippy, build, test, doctest, docs)
run: cargo make ci

Expand Down

0 comments on commit a494de8

Please sign in to comment.