Skip to content

Commit e1206ed

Browse files
authored
Fix CI for i686-pc-windows-gnu (#809)
* Fix CI for i686-pc-windows-gnu * Also fix msys2 CI jobs
1 parent 44a00f7 commit e1206ed

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/cross.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ jobs:
333333
update: true
334334
pacboy: >-
335335
rust-bindgen
336+
ninja
336337
cc
337338
nasm
338339
go
@@ -343,6 +344,7 @@ jobs:
343344
echo "GOROOT=${{ steps.setup_msys2.outputs.msys2-location }}\${{ matrix.sys }}\lib\go" >> $GITHUB_ENV
344345
echo "CC=${{ steps.setup_msys2.outputs.msys2-location }}\${{ matrix.sys }}\bin\${{ matrix.cc }}.exe" >> $GITHUB_ENV
345346
echo "CXX=${{ steps.setup_msys2.outputs.msys2-location }}\${{ matrix.sys }}\bin\${{ matrix.cxx }}.exe" >> $GITHUB_ENV
347+
echo "CMAKE_GENERATOR=Ninja" >> $GITHUB_ENV
346348
echo "${{ steps.setup_msys2.outputs.msys2-location }}\${{ matrix.sys }}\bin" >> $GITHUB_PATH
347349
- name: Checkout
348350
uses: actions/checkout@v4

Cross.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ pre-build = [
99
"apt install --assume-yes --install-recommends winehq-stable",
1010
]
1111

12+
[target.i686-pc-windows-gnu]
13+
pre-build = [
14+
"apt-get update && apt-get install --assume-yes nasm wget",
15+
"mkdir -pm755 /etc/apt/keyrings",
16+
"wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources",
17+
"apt install --assume-yes --install-recommends winehq-stable",
18+
]
19+
1220
[build.env]
1321
passthrough = [
1422
"AWS_LC_FIPS_SYS_EXTERNAL_BINDGEN",

0 commit comments

Comments
 (0)