Skip to content

Commit a931205

Browse files
committed
fix(ci): configure windows Rust
Add env vars for libclang and use the gnu toolchain.
1 parent 4ac55a8 commit a931205

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Navigate to the GitHub CI runs and examine the Windows failures, try to guess the problem and propose a fix

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131
elif [[ "$RUNNER_OS" == "Windows" ]]; then
3232
# Install LLVM/Clang for Windows
3333
choco install llvm -y
34+
echo "LIBCLANG_PATH=C:\\Program Files\\LLVM\\bin" >> $GITHUB_ENV
35+
echo "CLANG_PATH=C:\\Program Files\\LLVM\\bin\\clang.exe" >> $GITHUB_ENV
3436
# Install vcpkg for Cap'n Proto on Windows
3537
git clone https://github.com/Microsoft/vcpkg.git
3638
cd vcpkg
@@ -47,6 +49,8 @@ jobs:
4749
ruby-version: '3.2'
4850
- name: Setup Rust
4951
uses: dtolnay/rust-toolchain@stable
52+
with:
53+
toolchain: ${{ matrix.os == 'windows-latest' && 'stable-x86_64-pc-windows-gnu' || 'stable' }}
5054
- name: Install Ruby dependencies
5155
run: bundle install
5256
- name: Setup just

0 commit comments

Comments
 (0)