Skip to content

Commit

Permalink
CI: replace actions-rs
Browse files Browse the repository at this point in the history
actions-rs/cargo erased
actions-rs/toochain replaced by dtolnay/rust-toolchain@master
Closes: #56

Signed-off-by: Rafael Garcia Ruiz <[email protected]>
  • Loading branch information
Razaloc committed Dec 3, 2022
1 parent 9e31765 commit 70429c1
Showing 1 changed file with 9 additions and 19 deletions.
28 changes: 9 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: check
args: --all-features
- run: cargo check --all-features

fmt:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all --check
- run: cargo fmt --all --check

test:
name: cargo test
Expand All @@ -43,25 +37,21 @@ jobs:
- uses: actions/checkout@v3
with:
lfs: 'true'
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: test
- run: cargo test

clippy:
name: cargo clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- run: cargo clippy -- -D warnings

# Job to key the bors success status against
bors:
name: bors
Expand Down

0 comments on commit 70429c1

Please sign in to comment.