chore: use cargo-wdk to build & package samples on the CI pipeline #36
+17
−5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR aims to use cargo-wdk to build and package the driver samples in the repository on the CI pipeline.
Changes:
continue-on-error = true
to the build job. Without this change, one job failure cancels all the other jobs triggered in the matrix. Since other jobs are being cancelled, we won't be able to know the possible failures/successes of those jobs while most of them have executed 70% of the steps at any given time.continue-on-error = true
to the "Build and Package Sample Drivers in the workspace with cargo-wdk" step ascargo-wdk
fails for known reasons due to a mix of sample and non-sample drivers in the workspace.cargo-wdk
currently can work with one kind of setup, either all are sample drivers or none.cargo-wdk
used in the pipeline is taken from https://github.com/svasista-ms/windows-drivers-rs and fromintegrate-cargo-wdk
branch as this PR is still not merged. This pipeline needs to get updated withcargo-wdk
from https://github.com/microsoft/windows-drivers-repo once it is merged.About cargo-wdk
cargo-wdk
is a Command-Line Interface (CLI) utility that can be used to create and build Windows driver projects that depend on the WDK and windows-drivers-rs platform. It aims to streamline management of Rust drivers. It provides an easy and a consistent way to get started with Rust driver projects and build them using simple commands. It eliminates a lengthy setup process and also the need to maintain additional files/tools (Makefiles for cargo-make) to build/package the drivers.Note: cargo-wdk is yet to be merged into windows-drivers-rs repo and it under review here