From b763e6a85f5e372df08ca586dc963908cc280042 Mon Sep 17 00:00:00 2001 From: Al Liu Date: Sun, 15 Sep 2024 19:05:50 +0800 Subject: [PATCH] Fix CI file on windows --- .github/workflows/ci.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eae0f41e..4aaf86f7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -180,9 +180,16 @@ jobs: with: path: ~/.cargo key: ${{ runner.os }}-coverage-dotcargo - - name: Run test + - name: Run test (Unix) run: RUSTFLAGS="--cfg all_tests" cargo test --all-features - + if: matrix.os != 'windows-latest' + - name: Run test (Windows) + shell: pwsh + run: | + $env:RUSTFLAGS="--cfg all_tests" + cargo test --all-features + if: matrix.os == 'windows-latest' + sanitizer: name: sanitizer strategy: