Skip to content

Commit d955b74

Browse files
chore: use cargo-wdk to build & package on the CI pipeline
1 parent 9c20eb3 commit d955b74

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ jobs:
3737
- x86_64-pc-windows-msvc
3838
- aarch64-pc-windows-msvc
3939

40+
target_arch:
41+
- x64
42+
- arm64
43+
4044
steps:
4145
- name: Checkout Repository
4246
uses: actions/checkout@v4
@@ -82,3 +86,10 @@ jobs:
8286

8387
- name: Build and Package Sample Drivers
8488
run: cargo make default +${{ matrix.rust_toolchain }} --locked --profile ${{ matrix.cargo_profile }} --target ${{ matrix.target_triple }}
89+
90+
# Steps to use cargo-wdk to build and package drivers
91+
- name: Install cargo-wdk binary
92+
run: cargo +${{ matrix.rust_toolchain }} install --git https://github.com/svasista-ms/windows-drivers-rs.git cargo-wdk --branch integrate-cargo-wdk --locked --profile ${{ matrix.cargo_profile }} --target ${{ matrix.target_triple }} --force
93+
94+
- name: Build and Package Sample Drivers in the workspace with cargo-wdk
95+
run: cargo +${{ matrix.rust_toolchain }} wdk build --profile ${{ matrix.cargo_profile }} --target-arch ${{ matrix.target_arch }}

0 commit comments

Comments
 (0)