56
56
- os : macos-latest
57
57
env :
58
58
TARGET_TRIPLE : x86_64-apple-darwin
59
- # Wine started crashing for whatever reason
60
- # # cross-compile from Linux to Windows using mingw
61
- # - os: ubuntu-latest
62
- # env:
63
- # TARGET_TRIPLE: x86_64-pc-windows-gnu
64
- # apt_deps: gcc-mingw-w64-x86-64 wine-stable
65
59
- os : ubuntu-latest
66
60
env :
67
61
TARGET_TRIPLE : aarch64-unknown-linux-gnu
@@ -114,15 +108,6 @@ jobs:
114
108
- name : Prepare dependencies
115
109
run : ./y.sh prepare
116
110
117
- # The Wine version shipped with Ubuntu 22.04 doesn't implement bcryptprimitives.dll
118
- - name : Build bcryptprimitives.dll shim for Wine
119
- if : matrix.os == 'ubuntu-latest' && matrix.env.TARGET_TRIPLE == 'x86_64-pc-windows-gnu'
120
- run : |
121
- rustup target add x86_64-pc-windows-gnu
122
- mkdir wine_shims
123
- rustc patches/bcryptprimitives.rs -Copt-level=3 -Clto=fat --out-dir wine_shims --target x86_64-pc-windows-gnu
124
- echo "WINEPATH=$(pwd)/wine_shims" >> $GITHUB_ENV
125
-
126
111
- name : Build
127
112
run : ./y.sh build --sysroot none
128
113
@@ -136,9 +121,6 @@ jobs:
136
121
137
122
# This is roughly config rust-lang/rust uses for testing
138
123
- name : Test with LLVM sysroot
139
- # Skip native x86_64-pc-windows-gnu. It is way too slow and cross-compiled
140
- # x86_64-pc-windows-gnu covers at least part of the tests.
141
- if : matrix.os != 'windows-latest' || matrix.env.TARGET_TRIPLE != 'x86_64-pc-windows-gnu'
142
124
env :
143
125
TARGET_TRIPLE : ${{ matrix.env.TARGET_TRIPLE }}
144
126
run : ./y.sh test --sysroot llvm --no-unstable-features
@@ -216,10 +198,6 @@ jobs:
216
198
- os : macos-latest
217
199
env :
218
200
TARGET_TRIPLE : aarch64-apple-darwin
219
- # cross-compile from Linux to Windows using mingw
220
- - os : ubuntu-latest
221
- env :
222
- TARGET_TRIPLE : x86_64-pc-windows-gnu
223
201
- os : windows-latest
224
202
env :
225
203
TARGET_TRIPLE : x86_64-pc-windows-msvc
@@ -244,12 +222,6 @@ jobs:
244
222
if : matrix.os == 'macos-latest' && matrix.env.TARGET_TRIPLE == 'x86_64-apple-darwin'
245
223
run : rustup set default-host x86_64-apple-darwin
246
224
247
- - name : Install MinGW toolchain
248
- if : matrix.os == 'ubuntu-latest' && matrix.env.TARGET_TRIPLE == 'x86_64-pc-windows-gnu'
249
- run : |
250
- sudo apt-get update
251
- sudo apt-get install -y gcc-mingw-w64-x86-64
252
-
253
225
- name : Prepare dependencies
254
226
run : ./y.sh prepare
255
227
@@ -263,19 +235,11 @@ jobs:
263
235
run : tar cvfJ cg_clif.tar.xz dist
264
236
265
237
- name : Upload prebuilt cg_clif
266
- if : matrix.os == 'windows-latest' || matrix.env.TARGET_TRIPLE != 'x86_64-pc-windows-gnu'
267
238
uses : actions/upload-artifact@v4
268
239
with :
269
240
name : cg_clif-${{ matrix.env.TARGET_TRIPLE }}
270
241
path : cg_clif.tar.xz
271
242
272
- - name : Upload prebuilt cg_clif (cross compile)
273
- if : matrix.os != 'windows-latest' && matrix.env.TARGET_TRIPLE == 'x86_64-pc-windows-gnu'
274
- uses : actions/upload-artifact@v4
275
- with :
276
- name : cg_clif-${{ runner.os }}-cross-x86_64-mingw
277
- path : cg_clif.tar.xz
278
-
279
243
release :
280
244
runs-on : ubuntu-latest
281
245
timeout-minutes : 10
0 commit comments