Skip to content

Commit a9f3ffa

Browse files
committed
ci: fix build on windows-2019
1 parent 40229d3 commit a9f3ffa

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ jobs:
6666
with:
6767
version: "11.0"
6868

69-
- name: Set LIBCLANG_PATH on windows-2019
70-
if: matrix.os == 'windows-2019'
71-
run: echo "LIBCLANG_PATH='C:\Program Files\LLVM\bin'" >> "$GITHUB_ENV"
72-
7369
- name: Cache Dependencies
7470
uses: Swatinem/rust-cache@988c164c3d0e93c4dbab36aaf5bbeb77425b2894
7571
with:
@@ -84,11 +80,17 @@ jobs:
8480

8581
- name: Run tests
8682
run: |
83+
# Set LIBCLANG_PATH for bindgen to access clang library under windows-2019
84+
if [ "$MATRIX_OS" == "windows-2019" ]; then
85+
export LIBCLANG_PATH="C:\Program Files\LLVM\bin"
86+
echo "$LIBCLANG_PATH"
87+
fi
8788
./ci_tools.sh
8889
./ci.sh
8990
env:
9091
TRAVIS_RUST_VERSION: ${{ matrix.rust }}
9192
TARGET: ${{ matrix.target }}
93+
MATRIX_OS: ${{ matrix.os }}
9294
ZLIB_INSTALLED: ${{ matrix.target == 'x86_64-unknown-linux-gnu' && 'true' || '' }}
9395
AES_NI_SUPPORT: ${{ matrix.target == 'x86_64-unknown-linux-gnu' && 'true' || '' }}
9496
shell: bash

0 commit comments

Comments
 (0)