compiler_recognition: Add recognize by verbose hint from compiler #558
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
| name: rust CI | |
| on: | |
| push: | |
| pull_request: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| components: clippy,rustfmt | |
| - run: cargo clippy --all-targets -- -D warnings | |
| - run: cargo fmt -- --check | |
| compile: | |
| name: Compile | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| - run: cargo build --verbose --release | |
| test: | |
| name: Test | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - windows-latest | |
| - macOS-latest | |
| toolchain: | |
| - stable | |
| - nightly | |
| runs-on: ${{ matrix.os }} | |
| needs: [compile] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: ${{ matrix.toolchain }} | |
| - name: Install ccache on Ubuntu | |
| # Bear's wrapper-recursion integration test | |
| # (wrapper_mode_survives_masquerade_wrapper_in_path) needs a ccache | |
| # masquerade dir to exist. The ccache package creates | |
| # /usr/lib/ccache/* symlinks; the test injects that dir into its own | |
| # child PATH. We deliberately do NOT prepend the dir to the job | |
| # PATH, because ccache first on PATH would inflate event counts | |
| # for other tests that assert exact compiler-event counts. | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y ccache | |
| - name: Run integration tests | |
| run: | | |
| cargo build --verbose | |
| cargo test --verbose | |
| env: | |
| BEAR_TEST_VERBOSE: 1 | |
| doc: | |
| name: Generate Documentation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| - run: cargo doc --no-deps | |
| spellcheck: | |
| name: Spell Check Documentation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Codespell | |
| run: pip install codespell | |
| - name: Run Codespell | |
| run: codespell | |
| copyright: | |
| name: Generate Copyright Notes | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Cargo License | |
| run: cargo install cargo-license | |
| - name: Generate License Report | |
| run: cargo license | |
| security-audit: | |
| name: Security Audit | |
| runs-on: ubuntu-latest | |
| if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Cargo Audit | |
| run: cargo install cargo-audit | |
| - name: Run Cargo Audit | |
| run: cargo audit |