Skip to content

Commit

Permalink
matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Apr 16, 2024
1 parent cbc470f commit f2f8442
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,20 @@ jobs:
cargo_clippy:
name: Check
runs-on: windows-2019

strategy:
matrix:
include:
- version: nightly
target: x86_64-pc-windows-msvc

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update toolchain
run: rustup update --no-self-update nightly && rustup default nightly-x86_64-pc-windows-msvc
run: rustup update --no-self-update ${{ matrix.version }} && rustup default ${{ matrix.version }}-${{ matrix.target }}
- name: Add toolchain target
run: rustup target add ${{ matrix.target }}
- name: Install clippy
run: rustup component add clippy
- name: Fix environment
Expand Down
15 changes: 12 additions & 3 deletions crates/tools/yml/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
}

fn clippy_yml() {
let mut yml = r#"name: clippy
let mut yml = r"name: clippy
on:
pull_request:
Expand All @@ -103,15 +103,24 @@ jobs:
cargo_clippy:
name: Check
runs-on: windows-2019
strategy:
matrix:
include:
- version: nightly
target: x86_64-pc-windows-msvc
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update toolchain
run: rustup update --no-self-update nightly && rustup default nightly-x86_64-pc-windows-msvc
run: rustup update --no-self-update ${{ matrix.version }} && rustup default ${{ matrix.version }}-${{ matrix.target }}
- name: Add toolchain target
run: rustup target add ${{ matrix.target }}
- name: Install clippy
run: rustup component add clippy
- name: Fix environment
uses: ./.github/actions/fix-environment"#
uses: ./.github/actions/fix-environment"
.to_string();

// This unrolling is required since "cargo clippy --all" consumes too much memory for the GitHub hosted runners.
Expand Down

0 comments on commit f2f8442

Please sign in to comment.