Skip to content

ci: cd example && make all #1

ci: cd example && make all

ci: cd example && make all #1

Workflow file for this run

name: Check, Build and Test
on: [push, pull_request]
jobs:
ci:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust-toolchain: [nightly]
targets: [riscv64gc-unknown-none-elf]
features: ["", "--all-features"] # default features or all features
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: ${{ matrix.rust-toolchain }}
components: rust-src, clippy, rustfmt
targets: ${{ matrix.targets }}
- name: Check rust version
run: rustc --version --verbose
- name: Check code format
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --target ${{ matrix.targets }} ${{ matrix.features }} -- -D warnings
- name: Build
run: cargo build --target ${{ matrix.targets }} ${{ matrix.features }}
- name: Run Example
run: cd example && make all