diff --git a/.github/workflows/jh.yml b/.github/workflows/jh.yml index 625a9741b..e72676247 100644 --- a/.github/workflows/jh.yml +++ b/.github/workflows/jh.yml @@ -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 @@ -35,19 +41,16 @@ 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 @@ -55,7 +58,10 @@ jobs: - 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 }}