riscv-rt: use pac_enum macro for exception handling
#1182
Workflow file for this run
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
| on: | |
| push: | |
| branches: [ master ] | |
| paths-ignore: | |
| - "**/*.md" | |
| - "*.md" | |
| - "typos.toml" | |
| pull_request: | |
| paths-ignore: | |
| - "**/*.md" | |
| - "*.md" | |
| - "typos.toml" | |
| merge_group: | |
| paths-ignore: | |
| - "**/*.md" | |
| - "*.md" | |
| - "typos.toml" | |
| name: Lints compliance check | |
| env: | |
| CLIPPY_PARAMS: -W clippy::all -W clippy::pedantic -W clippy::nursery -W clippy::cargo | |
| jobs: | |
| clippy: | |
| strategy: | |
| matrix: | |
| toolchain: [ stable, nightly ] | |
| include: | |
| # Nightly is only for reference and allowed to fail | |
| - toolchain: nightly | |
| experimental: true | |
| runs-on: ubuntu-latest | |
| continue-on-error: ${{ matrix.experimental || false }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ matrix.toolchain }} | |
| components: clippy | |
| - name: Run clippy (no features) | |
| run: cargo clippy --all --no-default-features -- -D warnings | |
| - name: Run clippy (all features) | |
| # Added -A deprecated for pre_init macro and no-interrupts and no-exceptions features | |
| run: cargo clippy --all --all-features -- -D warnings -A deprecated | |
| # Additonal clippy checks for riscv-rt | |
| clippy-riscv-rt: | |
| strategy: | |
| matrix: | |
| toolchain: [ stable, nightly ] | |
| include: | |
| # Nightly is only for reference and allowed to fail | |
| - toolchain: nightly | |
| experimental: true | |
| runs-on: ubuntu-latest | |
| continue-on-error: ${{ matrix.experimental || false }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ matrix.toolchain }} | |
| components: clippy | |
| - name: Run clippy (s-mode) | |
| run: cargo clippy --package riscv-rt --all --features=s-mode -- -D warnings | |
| - name: Run clippy (single-hart) | |
| run: cargo clippy --package riscv-rt --all --features=single-hart -- -D warnings | |
| # Job to check that all the lint checks succeeded | |
| clippy-check: | |
| needs: | |
| - clippy | |
| - clippy-riscv-rt | |
| runs-on: ubuntu-latest | |
| if: always() | |
| steps: | |
| - run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}' |