refactor: use a standardized workspace lint table #14
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
on: | |
push: | |
pull_request: | |
merge_group: | |
schedule: # Trigger a job on default branch at 4AM PST everyday | |
- cron: "0 11 * * *" | |
name: Local Development Makefile | |
env: | |
RUSTFLAGS: -D warnings | |
jobs: | |
build: | |
name: Test WDR's local cargo-make Makefile | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
wdk: | |
- Microsoft.WindowsWDK.10.0.22621 # NI WDK | |
target_triple: | |
- x86_64-pc-windows-msvc | |
# - aarch64-pc-windows-msvc FIXME: find a way to validate the local makefile on aarch64 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Install Winget | |
uses: ./.github/actions/winget-install | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install WDK (${{ matrix.wdk }}) | |
run: | | |
if (!(winget list --exact --source winget --id ${{ matrix.wdk }})[-1].contains("${{ matrix.wdk }}")) { | |
winget install --disable-interactivity --source winget --exact --id ${{ matrix.wdk }} | |
} | |
- name: Install Nightly Rust Toolchain (${{ matrix.target_triple }}) | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: clippy, rustfmt | |
targets: ${{ matrix.target_triple }} | |
- name: Install Beta Rust Toolchain (${{ matrix.target_triple }}) | |
uses: dtolnay/rust-toolchain@beta | |
with: | |
components: clippy | |
targets: ${{ matrix.target_triple }} | |
- name: Install Stable Rust Toolchain (${{ matrix.target_triple }}) | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
targets: ${{ matrix.target_triple }} | |
- name: Install Cargo Make | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: cargo-make | |
- name: Test wdk-pre-commit-flow cargo-make task | |
run: cargo make wdk-pre-commit-flow |