Skip to content

Commit 2c1f2e1

Browse files
committed
ci: install msys2 toolchain
1 parent a931205 commit 2c1f2e1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Investigate missing strings.h error in Windows CI and propose fix

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
choco install llvm -y
3434
echo "LIBCLANG_PATH=C:\\Program Files\\LLVM\\bin" >> $GITHUB_ENV
3535
echo "CLANG_PATH=C:\\Program Files\\LLVM\\bin\\clang.exe" >> $GITHUB_ENV
36+
# Add MSYS2 include directories for bindgen
37+
echo "BINDGEN_EXTRA_CLANG_ARGS_x86_64-pc-windows-gnu=-IC:/msys64/ucrt64/include -IC:/msys64/usr/include" >> $GITHUB_ENV
3638
# Install vcpkg for Cap'n Proto on Windows
3739
git clone https://github.com/Microsoft/vcpkg.git
3840
cd vcpkg
@@ -47,6 +49,11 @@ jobs:
4749
uses: ruby/setup-ruby@v1
4850
with:
4951
ruby-version: '3.2'
52+
- name: Install MSYS2 toolchain
53+
if: runner.os == 'Windows'
54+
shell: bash
55+
run: |
56+
ridk exec pacman -S --noconfirm base-devel mingw-w64-ucrt-x86_64-toolchain
5057
- name: Setup Rust
5158
uses: dtolnay/rust-toolchain@stable
5259
with:

0 commit comments

Comments
 (0)