Enable CI #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: sha3 | ||
on: | ||
pull_request: | ||
paths: | ||
- ".github/workflows/sha3.yml" | ||
- "sha3/**" | ||
- "Cargo.*" | ||
push: | ||
branches: master | ||
defaults: | ||
run: | ||
working-directory: sha3 | ||
env: | ||
RUSTFLAGS: "-Dwarnings" | ||
CARGO_INCREMENTAL: 0 | ||
jobs: | ||
build: | ||
needs: set-msrv | ||
Check failure on line 22 in .github/workflows/sha3.yml GitHub Actions / sha3Invalid workflow file
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
rust: | ||
- ${{needs.set-msrv.outputs.msrv}} | ||
- stable | ||
target: | ||
- thumbv7em-none-eabi | ||
- wasm32-unknown-unknown | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: risc0/risc0/.github/actions/rustup@main | ||
with: | ||
profile: minimal | ||
toolchain: ${{ matrix.rust }} | ||
target: ${{ matrix.target }} | ||
override: true | ||
- run: cargo build --no-default-features --target ${{ matrix.target }} | ||
test: | ||
needs: set-msrv | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
rust: | ||
- ${{needs.set-msrv.outputs.msrv}} | ||
- stable | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: risc0/risc0/.github/actions/rustup@main | ||
with: | ||
profile: minimal | ||
toolchain: ${{ matrix.rust }} | ||
override: true | ||
- run: cargo check --all-features | ||
- run: cargo test --no-default-features | ||
- run: cargo test | ||
- run: cargo test --all-features | ||
# TODO: remove on MSRV bump to 1.57 or higher | ||
test-msrv: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: risc0/risc0/.github/actions/rustup@main | ||
with: | ||
profile: minimal | ||
toolchain: 1.41.0 | ||
override: true | ||
- run: cargo test --no-default-features | ||
- run: cargo test |