Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ concurrency:
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

env:
# TODO: Remove when cargo-wdk supports Cargo build-dir layout v2 (see https://github.com/microsoft/windows-drivers-rs/issues/709).
CARGO_UNSTABLE_BUILD_DIR_NEW_LAYOUT: 'false'
RUSTFLAGS: >-
-D warnings
-C target-feature=+crt-static
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.compare || github.head_ref || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

env:
# TODO: Remove when cargo-wdk supports Cargo build-dir layout v2 (see https://github.com/microsoft/windows-drivers-rs/issues/709).
# The whitelist in function `sanitize_env_vars` in crates/cargo-wdk/tests/test_utils/mod.rs should also be removed once this env var is removed.
CARGO_UNSTABLE_BUILD_DIR_NEW_LAYOUT: 'false'

jobs:
test:
name: Test
Expand Down
2 changes: 2 additions & 0 deletions crates/cargo-wdk/tests/test_utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,8 @@ fn sanitize_env_vars(cmd: &mut Command) {
// non-default locations
&& var_upper != "CARGO_HOME"
&& var_upper != "RUSTUP_HOME"
// TODO: Remove this whitelist once the env var is removed from test.yaml (see https://github.com/microsoft/windows-drivers-rs/issues/709)
&& var_upper != "CARGO_UNSTABLE_BUILD_DIR_NEW_LAYOUT"
{
Some(var)
} else {
Expand Down
Loading