Skip to content

Commit

Permalink
Use actions-rs/toolchain to set up toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
LPGhatguy committed May 23, 2022
1 parent bf8d05d commit 4f356db
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup Rust
run: rustup default ${{ matrix.rust_version }}
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust_version }}
override: true
profile: minimal

- name: Build
run: cargo build --locked --verbose
Expand All @@ -37,8 +41,12 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup Rust
run: rustup default stable
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy

- name: Rustfmt
run: cargo fmt -- --check
Expand Down

0 comments on commit 4f356db

Please sign in to comment.