test #73
Workflow file for this run
This file contains 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: Clippy Test (bors) | |
on: | |
push: | |
# branches: | |
# - auto | |
# - try | |
env: | |
RUST_BACKTRACE: 1 | |
CARGO_TARGET_DIR: '${{ github.workspace }}/target' | |
NO_FMT_TEST: 1 | |
CARGO_INCREMENTAL: 0 | |
concurrency: | |
# For a given workflow, if we push to the same branch, cancel all previous builds on that branch. | |
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}" | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
base: | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
host: x86_64-unknown-linux-gnu | |
- os: ubuntu-latest | |
host: i686-unknown-linux-gnu | |
- os: windows-latest | |
host: x86_64-pc-windows-msvc | |
- os: macos-13 | |
host: x86_64-apple-darwin | |
runs-on: ${{ matrix.os }} | |
# NOTE: If you modify this job, make sure you copy the changes to clippy.yml | |
steps: | |
# Setup | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install i686 dependencies | |
if: matrix.host == 'i686-unknown-linux-gnu' | |
run: | | |
sudo dpkg --add-architecture i386 | |
sudo apt-get update | |
sudo apt-get install gcc-multilib zlib1g-dev:i386 | |
- name: Install toolchain | |
run: | | |
rustup set default-host ${{ matrix.host }} | |
rustup show active-toolchain | |
# Run | |
- name: Build | |
run: cargo build --tests --features deny-warnings,internal | |
- name: Test | |
if: matrix.host == 'x86_64-unknown-linux-gnu' | |
run: cargo test --features deny-warnings,internal | |
- name: Test | |
if: matrix.host != 'x86_64-unknown-linux-gnu' | |
run: cargo test --features deny-warnings,internal -- --skip dogfood | |
- name: Test clippy_lints | |
run: cargo test --features deny-warnings,internal | |
working-directory: clippy_lints | |
- name: Test clippy_utils | |
run: cargo test --features deny-warnings | |
working-directory: clippy_utils | |
- name: Test clippy_config | |
run: cargo test --features deny-warnings | |
working-directory: clippy_config | |
- name: Test rustc_tools_util | |
run: cargo test --features deny-warnings | |
working-directory: rustc_tools_util | |
- name: Test clippy_dev | |
run: cargo test --features deny-warnings | |
working-directory: clippy_dev | |
- name: Test clippy-driver | |
run: | | |
TOOLCHAIN=$(rustup show active-toolchain | cut -f1 -d' ') | |
rustup run $TOOLCHAIN bash .github/driver.sh | |
env: | |
OS: ${{ runner.os }} |