chore(deps): update rust crate cc to v1.2.60 #43
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: CI | |
| on: | |
| push: | |
| pull_request: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| check-generated: | |
| name: Check Generated Headers | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| - run: sudo apt-get update && sudo apt-get install -y cmake | |
| - run: bash scripts/generate-headers.sh | |
| - name: Verify generated headers are up to date | |
| run: | | |
| if ! git diff --exit-code generated/; then | |
| echo "::error::Generated headers are out of date. Run 'bash scripts/generate-headers.sh' and commit the changes." | |
| exit 1 | |
| fi | |
| clippy-sarif: | |
| name: Clippy SARIF | |
| runs-on: ubuntu-latest | |
| if: ${{ github.ref == 'refs/heads/master' }} | |
| permissions: | |
| security-events: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - run: sudo apt-get update && sudo apt-get install -y libclang-dev | |
| - run: cargo install clippy-sarif sarif-fmt | |
| - run: > | |
| cargo clippy --all-targets --all-features --message-format=json -- -Dwarnings | | |
| clippy-sarif | tee results.sarif | sarif-fmt | |
| continue-on-error: true | |
| - uses: github/codeql-action/upload-sarif@v4 | |
| with: | |
| sarif_file: results.sarif | |
| fmt: | |
| name: Format | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt | |
| - run: cargo fmt --all -- --check | |
| clippy: | |
| name: Clippy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - run: sudo apt-get update && sudo apt-get install -y libclang-dev | |
| - run: cargo clippy --all-targets --all-features -- -D warnings | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| - uses: dtolnay/rust-toolchain@stable | |
| - run: sudo apt-get update && sudo apt-get install -y libclang-dev | |
| - run: cargo test |