diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 75adf50..601c12d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -102,7 +102,7 @@ jobs: # Steps to use cargo-make to build and package drivers - name: Install Cargo Make - uses: taiki-e/install-action@v2 + uses: ./.github/actions/install-cargo-tool with: tool: cargo-make diff --git a/.github/workflows/code-formatting-check.yaml b/.github/workflows/code-formatting-check.yaml index 9578105..0860f17 100644 --- a/.github/workflows/code-formatting-check.yaml +++ b/.github/workflows/code-formatting-check.yaml @@ -39,10 +39,18 @@ jobs: - name: Install Rust Toolchain (Stable) uses: dtolnay/rust-toolchain@stable - - name: Install taplo-cli - uses: taiki-e/install-action@v2 + # Using cache-cargo-install-action to cache the compiled binary. + # Once taplo ships a release with field-level `keys` matching, this can + # be simplified back to install-action with a normal version pin. + - name: Install taplo-cli from pinned revision b673b44d + uses: taiki-e/cache-cargo-install-action@v3 with: tool: taplo-cli + git: https://github.com/tamasfe/taplo + rev: b673b44d + locked: true + env: + RUSTFLAGS: "" - run: taplo fmt --check --diff name: Check TOML files formatting diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index a3bacda..a8d6f21 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -112,11 +112,25 @@ jobs: - name: Checkout Repository uses: actions/checkout@v4 + - name: Checkout windows-drivers-rs actions + uses: actions/checkout@v4 + with: + repository: microsoft/windows-drivers-rs + ref: main + path: _temp/windows-drivers-rs + sparse-checkout: | + .github/actions + sparse-checkout-cone-mode: false + + - name: Copy actions to workspace + shell: pwsh + run: Copy-Item -Recurse -Force _temp/windows-drivers-rs/.github/actions .github/ + - name: Install Rust Toolchain uses: dtolnay/rust-toolchain@stable - name: Install Cargo Machete - uses: taiki-e/install-action@v2 + uses: ./.github/actions/install-cargo-tool with: tool: cargo-machete