Skip to content

Commit

Permalink
Update ci (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed Apr 21, 2023
1 parent de37430 commit f01cc90
Showing 1 changed file with 9 additions and 32 deletions.
41 changes: 9 additions & 32 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,52 +15,29 @@ jobs:
rust: [stable, beta, nightly]

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
components: rustfmt

- name: cargo test --all
uses: actions-rs/cargo@v1
with:
command: test
args: --all
- name: cargo test --benches
if: matrix.rust == 'nightly'
uses: actions-rs/cargo@v1
with:
command: test
args: --benches

- run: cargo test --workspace
- if: matrix.rust == 'nightly'
run: cargo test --benches
- name: Check minimal versions
if: matrix.rust == 'nightly'
run: |
cargo clean
cargo update -Z minimal-versions
cargo check
- name: cargo fmt --check
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- run: cargo fmt --all --check

MSRV:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install rust ${{ env.minrust }}
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.minrust }}
profile: minimal
override: true

- name: cargo build
uses: actions-rs/cargo@v1
with:
command: build
- run: cargo build

0 comments on commit f01cc90

Please sign in to comment.