diff --git a/.ci/test.yml b/.ci/test.yml index 32bf9a6f1..fbab8cb4d 100644 --- a/.ci/test.yml +++ b/.ci/test.yml @@ -1,10 +1,9 @@ steps: - - script: | - refreshenv - LIBCLANG_PATH=C:\Program Files\LLVM\lib - LLVM_CONFIG_PATH=C:\Program Files\LLVM\bin\llvm-config - ROARING_ARCH=x86-64-v2 - cargo test --all + - script: 'refreshenv && cargo test --all' + env: + LIBCLANG_PATH: C:\Program Files\LLVM\lib + LLVM_CONFIG_PATH: C:\Program Files\LLVM\bin\llvm-config + ROARING_ARCH: x86-64-v2 displayName: Windows Cargo Test condition: and(eq( variables['Agent.OS'], 'Windows_NT' ), eq( variables['CI_JOB'], 'test-all' )) - script: 'ROARING_ARCH=x86-64-v2 cargo test --all' diff --git a/.ci/windows-release.yml b/.ci/windows-release.yml index e66534451..8f4b4e722 100644 --- a/.ci/windows-release.yml +++ b/.ci/windows-release.yml @@ -1,19 +1,16 @@ steps: - - script: | - refreshenv - LIBCLANG_PATH=C:\Program Files\LLVM\lib - LLVM_CONFIG_PATH=C:\Program Files\LLVM\bin\llvm-config - ROARING_ARCH=x86-64-v2 - cargo test --all + - script: 'refreshenv && cargo test --all' + env: + LIBCLANG_PATH: C:\Program Files\LLVM\lib + LLVM_CONFIG_PATH: C:\Program Files\LLVM\bin\llvm-config + ROARING_ARCH: x86-64-v2 displayName: Cargo Test All condition: and(succeeded(), contains(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['CI_JOB'], 'release' )) - - script: | - cargo clean - refreshenv - LIBCLANG_PATH=C:\Program Files\LLVM\lib - LLVM_CONFIG_PATH=C:\Program Files\LLVM\bin\llvm-config - ROARING_ARCH=x86-64-v2 - cargo build --release + - script: 'refreshenv && cargo clean && cargo build --release' + env: + LIBCLANG_PATH: C:\Program Files\LLVM\lib + LLVM_CONFIG_PATH: C:\Program Files\LLVM\bin\llvm-config + ROARING_ARCH: x86-64-v2 displayName: Build Release condition: and(succeeded(), contains(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['CI_JOB'], 'release' )) - script: |