From dc9be5f3c55d1226c85a60abc100e276a9b2ef57 Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Fri, 20 Sep 2024 13:52:30 +0300 Subject: [PATCH] ci: Run `clippy` on all platforms So that we get issues for platform-specific code. Also change `macos-14` -> `macos-latest` everywhere. --- .github/workflows/check.yml | 4 +--- .github/workflows/clippy.yml | 10 +++++++++- .github/workflows/firefox.yml | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index fb7877b9ee..490c7047c4 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -24,9 +24,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-14, windows-latest] - # Don't increase beyond what Firefox is currently using: - # https://searchfox.org/mozilla-central/search?q=MINIMUM_RUST_VERSION&path=python/mozboot/mozboot/util.py + os: [ubuntu-latest, macos-latest, windows-latest] # Keep in sync with Cargo.toml rust-toolchain: [1.76.0, stable, nightly] type: [debug] diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index c323f79048..00a6cd029a 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -21,7 +21,15 @@ permissions: jobs: clippy: - runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + defaults: + run: + shell: bash + steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - uses: ./.github/actions/rust diff --git a/.github/workflows/firefox.yml b/.github/workflows/firefox.yml index 54e2e4b712..a55354fa6d 100644 --- a/.github/workflows/firefox.yml +++ b/.github/workflows/firefox.yml @@ -23,7 +23,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-14, windows-latest] + os: [ubuntu-latest, macos-latest, windows-latest] type: [debug, release] runs-on: ${{ matrix.os }} defaults: