Skip to content

Enable CI

Enable CI #8

Workflow file for this run

name: tiger
on:
pull_request:
paths:
- ".github/workflows/tiger.yml"
- "tiger/**"
- "Cargo.*"
push:
branches: master
paths:
- "tiger/**"
- "Cargo.*"
defaults:
run:
working-directory: tiger
env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.41.0 # 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 }}
targets: ${{ matrix.target }}
override: true
- run: cargo build --no-default-features --target ${{ matrix.target }}
test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.41.0 # 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
- run: cargo test --no-default-features
- run: cargo test