analysis #415
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
| name: analysis | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| schedule: | |
| - cron: "34 5 * * 1" | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| clippy: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| security-events: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust toolchain with clippy | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - name: Install clippy-sarif and sarif-fmt | |
| uses: taiki-e/install-action@v2 | |
| with: | |
| tool: clippy-sarif,sarif-fmt | |
| - name: Run clippy | |
| run: > | |
| cargo clippy --all-target --all-features --message-format=json | |
| | clippy-sarif | |
| | tee rust-clippy-results.sarif | |
| | sarif-fmt | |
| continue-on-error: true | |
| - name: Upload analysis results to GitHub | |
| uses: github/codeql-action/upload-sarif@v3 | |
| with: | |
| sarif_file: rust-clippy-results.sarif | |
| category: clippy | |
| wait-for-processing: true | |
| miri: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| platform: | |
| - s390x-unknown-linux-gnu # 32-bit BE | |
| - powerpc64-unknown-linux-gnu # 64-bit BE | |
| - i686-unknown-linux-gnu | |
| - x86_64-unknown-linux-gnu | |
| - x86_64-pc-windows-msvc | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup toolchain with Miri | |
| uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| components: miri, rust-src | |
| - name: Run tests under Miri | |
| env: | |
| MIRIFLAGS: >- | |
| -Zmiri-permissive-provenance | |
| -Zmiri-many-seeds | |
| run: cargo +nightly miri test --verbose --target ${{matrix.platform}} --all-features |