Skip to content

Commit

Permalink
Remove usage of actions-rs/*
Browse files Browse the repository at this point in the history
  • Loading branch information
R1tschY committed Aug 13, 2023
1 parent f5dec71 commit 5249863
Showing 1 changed file with 14 additions and 25 deletions.
39 changes: 14 additions & 25 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,23 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v2

- name: Setup nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Setup Rust toolchain
run: |
rustup toolchain install stable --profile minimal --no-self-update -c clippy -c rustfmt
rustup default stable
shell: bash

- name: "Print Rust toolchain version"
run: rustc --version --verbose
shell: bash

- uses: Swatinem/rust-cache@v2

- name: Fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all -- --check

- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings

- name: Check
uses: actions-rs/cargo@v1
with:
command: check
args: --release
run: cargo clippy -- -D warnings

- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --release
run: cargo test --release

0 comments on commit 5249863

Please sign in to comment.