name: CI on: push: branches: [main] pull_request: branches: [main] jobs: test: runs-on: ubuntu-latest container: rust:latest steps: - uses: actions/checkout@v4 - name: Cache cargo registry/target uses: actions/cache@v4 with: path: | ~/.cargo/registry ~/.cargo/git target key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Install rustfmt & clippy components run: rustup component add rustfmt clippy - name: Install thumbv7em-none-eabihf target run: rustup target add thumbv7em-none-eabihf - name: Install cargo-audit run: cargo install cargo-audit --locked - name: Run CI script run: bash scripts/ci-test.sh