From d73a00f9925466f41bc4b9953e5151d044ab0bb0 Mon Sep 17 00:00:00 2001 From: Matt Ehrnschwender Date: Sun, 25 Feb 2024 01:20:16 +0000 Subject: [PATCH] Set path for Windows --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f4d7ceb..072edcf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -266,7 +266,9 @@ jobs: - name: Run sanitizer tests for Windows if: ${{ runner.os == 'Windows' }} working-directory: ${{ env.AGENT_CODE }} - run: cargo +nightly test --color always -p ffiwrappers --all-features --target $env:TARGET + run: | + $env:PATH="$env:PATH;$env:VCToolsInstallDir/bin/Hostx64/x64" + cargo +nightly test --color always -p ffiwrappers --all-features --target $env:TARGET env: TARGET: ${{ matrix.os.target }} RUSTFLAGS: -Zsanitizer=${{ matrix.sanitizer }}