Skip to content

Commit

Permalink
Migrate from actions-rs (#193)
Browse files Browse the repository at this point in the history
It is unmaintained.
  • Loading branch information
paholg authored Feb 14, 2023
1 parent f03b486 commit 1871986
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 34 deletions.
40 changes: 10 additions & 30 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name: CI

jobs:
test-linux:
name: test
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -34,41 +34,21 @@ jobs:
rust: stable
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --verbose --features "strict" ${{ matrix.mb_const_generics }}
- uses: actions-rs/cargo@v1
with:
command: doc
args: --features "strict" ${{ matrix.mb_const_generics }}
- run: cargo test --verbose --features "strict" ${{ matrix.mb_const_generics }}
- run: cargo doc --features "strict" ${{ matrix.mb_const_generics }}

clippy:
name: clippy + fmt
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@nightly
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt, clippy
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- uses: actions-rs/cargo@v1
with:
command: clippy
# Allow deprecated because we test the no_std feature.
args: --all-features -- -D warnings -A deprecated
- run: cargo fmt --all -- --check
- run: cargo clippy -- -D warnings
# Allow deprecated because we test the no_std feature.
- run: cargo clippy --all-features -- -D warnings -A deprecated
5 changes: 1 addition & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: dtolnay/rust-toolchain@stable
- uses: katyo/publish-crates@v1
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit 1871986

Please sign in to comment.