Skip to content

Commit

Permalink
Tweak CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Jun 11, 2023
1 parent 5f447d4 commit f48c5c8
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions .github/workflows/jh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,18 @@ env:
RUSTFLAGS: "-Dwarnings"

jobs:
set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
msrv: 1.57.0

build:
needs: set-msrv
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.57.0 # MSRV
- ${{needs.set-msrv.outputs.msrv}}
- stable
target:
- thumbv7em-none-eabi
Expand All @@ -35,27 +41,27 @@ jobs:
with:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.target }}
- run: cargo build --no-default-features --target ${{ matrix.target }}

minimal-versions:
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
with:
working-directory: ${{ github.workflow }}
- uses: RustCrypto/actions/cargo-hack-install@master
- run: cargo hack build --target ${{ matrix.target }} --each-feature --exclude-features default,std

test:
needs: set-msrv
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.57.0 # MSRV
- ${{needs.set-msrv.outputs.msrv}}
- stable
steps:
- uses: actions/checkout@v3
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- run: cargo check --all-features
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --all-features
- uses: RustCrypto/actions/cargo-hack-install@master
- run: cargo hack test --feature-powerset

minimal-versions:
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
with:
working-directory: ${{ github.workflow }}

0 comments on commit f48c5c8

Please sign in to comment.