|
17 | 17 | name: Build |
18 | 18 | runs-on: windows-latest |
19 | 19 | strategy: |
| 20 | + fail-fast: false # Allow all matrix variants to complete even if some fail |
20 | 21 | matrix: |
21 | 22 | wdk: |
22 | 23 | - Microsoft.WindowsWDK.10.0.22621 # NI WDK |
|
34 | 35 | - release |
35 | 36 |
|
36 | 37 | target_triple: |
37 | | - - x86_64-pc-windows-msvc |
38 | | - - aarch64-pc-windows-msvc |
| 38 | + - name: x86_64-pc-windows-msvc |
| 39 | + arch: amd64 |
| 40 | + - name: aarch64-pc-windows-msvc |
| 41 | + arch: arm64 |
39 | 42 |
|
40 | 43 | steps: |
41 | 44 | - name: Checkout Repository |
@@ -70,15 +73,24 @@ jobs: |
70 | 73 | uses: dtolnay/rust-toolchain@master |
71 | 74 | with: |
72 | 75 | toolchain: ${{ matrix.rust_toolchain }} |
73 | | - targets: ${{ matrix.target_triple }} |
| 76 | + targets: ${{ matrix.target_triple.name }} |
74 | 77 |
|
75 | 78 | - name: Run Cargo Build |
76 | | - run: cargo +${{ matrix.rust_toolchain }} build --locked --profile ${{ matrix.cargo_profile }} --target ${{ matrix.target_triple }} --workspace |
| 79 | + run: cargo +${{ matrix.rust_toolchain }} build --locked --profile ${{ matrix.cargo_profile }} --target ${{ matrix.target_triple.name }} --workspace |
77 | 80 |
|
| 81 | + # Steps to use cargo-make to build and package drivers |
78 | 82 | - name: Install Cargo Make |
79 | 83 | uses: taiki-e/install-action@v2 |
80 | 84 | with: |
81 | 85 | tool: cargo-make |
82 | 86 |
|
83 | 87 | - name: Build and Package Sample Drivers |
84 | | - run: cargo make default +${{ matrix.rust_toolchain }} --locked --profile ${{ matrix.cargo_profile }} --target ${{ matrix.target_triple }} |
| 88 | + run: cargo make default +${{ matrix.rust_toolchain }} --locked --profile ${{ matrix.cargo_profile }} --target ${{ matrix.target_triple.name }} |
| 89 | + |
| 90 | + # Steps to use cargo-wdk to build and package drivers (uses cargo-wdk at specific commit https://github.com/microsoft/windows-drivers-rs/commit/5b9aa0a14e385daf5217c0f5232bcd4d3f4780a6) |
| 91 | + - name: Install cargo-wdk binary |
| 92 | + run: cargo +${{ matrix.rust_toolchain }} install --git https://github.com/microsoft/windows-drivers-rs.git cargo-wdk --branch main --rev 5b9aa0a14e385daf5217c0f5232bcd4d3f4780a6 --locked --force |
| 93 | + |
| 94 | + - name: Build and Package Sample Drivers with cargo-wdk |
| 95 | + run: cargo +${{ matrix.rust_toolchain }} wdk build --profile ${{ matrix.cargo_profile }} --target-arch ${{ matrix.target_triple.arch }} |
| 96 | + continue-on-error: true # cargo-wdk build fails for a known reason |
0 commit comments