Skip to content

Commit d6efe09

Browse files
authored
CI for cross-compiling to x86_64-pc-windows-gnu (#414)
1 parent 00a2ad3 commit d6efe09

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/cross.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
strategy:
2727
fail-fast: false
2828
matrix:
29-
os: [ ubuntu-latest ]
29+
os: [ ubuntu-22.04 ]
3030
target:
3131
- arm-unknown-linux-gnueabihf
3232
- aarch64-unknown-linux-gnu
@@ -41,6 +41,7 @@ jobs:
4141
- x86_64-unknown-linux-musl
4242
- aarch64-unknown-linux-musl
4343
- s390x-unknown-linux-gnu
44+
- x86_64-pc-windows-gnu
4445
steps:
4546
- uses: actions/checkout@v3
4647
with:

Cross.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
[build]
22
dockerfile = "./docker/linux-cross/Dockerfile"
33

4+
[target.x86_64-pc-windows-gnu]
5+
pre-build = [
6+
"apt-get update && apt-get install --assume-yes nasm clang wget",
7+
"mkdir -pm755 /etc/apt/keyrings",
8+
"wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources",
9+
"apt install --assume-yes --install-recommends winehq-stable"
10+
]
11+
412
[build.env]
513
passthrough = [
614
"AWS_LC_SYS_NO_PREFIX", "AWS_LC_FIPS_SYS_NO_PREFIX",

0 commit comments

Comments
 (0)