Terminology: retire the "SFRS" acronym #6
This file contains hidden or 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
| # SPDX-License-Identifier: GPL-3.0-or-later | |
| # | |
| # Caliper CI — runs on every push and pull request. | |
| # Mirrors PLAN.md §7 verification matrix. | |
| name: ci | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUSTFLAGS: "-D warnings" | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| fmt: | |
| name: rustfmt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@1.88.0 | |
| with: | |
| components: rustfmt | |
| - run: cargo fmt --all --check | |
| clippy: | |
| name: clippy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@1.88.0 | |
| with: | |
| components: clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: cargo clippy --workspace --all-targets -- -D warnings | |
| test: | |
| name: test (${{ matrix.target.name }}) | |
| runs-on: ${{ matrix.target.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| target: | |
| - { name: linux-gnu, os: ubuntu-latest, triple: x86_64-unknown-linux-gnu } | |
| - { name: linux-musl, os: ubuntu-latest, triple: x86_64-unknown-linux-musl } | |
| - { name: linux-arm64, os: ubuntu-24.04-arm, triple: aarch64-unknown-linux-gnu } | |
| - { name: macos-x86_64, os: macos-13, triple: x86_64-apple-darwin } | |
| - { name: macos-arm64, os: macos-latest, triple: aarch64-apple-darwin } | |
| - { name: windows, os: windows-latest, triple: x86_64-pc-windows-msvc } | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@1.88.0 | |
| with: | |
| targets: ${{ matrix.target.triple }} | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: cargo test --workspace --target ${{ matrix.target.triple }} | |
| deny: | |
| name: cargo-deny | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: EmbarkStudios/cargo-deny-action@v2 | |
| miri: | |
| name: miri (caliper-anvil) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| components: miri | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: cargo +nightly miri test -p caliper-anvil | |
| audit: | |
| name: xtask audits | |
| runs-on: ubuntu-latest | |
| needs: [fmt] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@1.88.0 | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: cargo xtask spdx-audit | |
| - run: cargo xtask utf8-audit | |
| - run: cargo xtask network-audit |