File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change @@ -301,3 +301,57 @@ jobs:
301
301
else \
302
302
exit 0; \
303
303
fi
304
+ build-and-check-windows :
305
+ runs-on : windows-latest
306
+ strategy :
307
+ matrix :
308
+ include :
309
+ - { sys: mingw64, env: x86_64 }
310
+ - { sys: mingw32, env: i686 }
311
+ name : ' Windows ${{ matrix.env }} ${{ matrix.sys }}'
312
+ defaults :
313
+ run :
314
+ shell : msys2 {0}
315
+ steps :
316
+ - uses : actions/checkout@v3
317
+
318
+ - name : ' ${{ matrix.sys }} Install deps'
319
+ uses : msys2/setup-msys2@v2
320
+ with :
321
+ msystem : ${{matrix.sys}}
322
+ update : true
323
+ install : >-
324
+ git
325
+ make
326
+ dejagnu
327
+ mpc
328
+ mpfr
329
+ gmp
330
+ curl
331
+ sed
332
+ findutils
333
+ diffutils
334
+ pacboy : >-
335
+ toolchain:p
336
+ rust:p
337
+
338
+ - run : |
339
+ find . -name .cargo-checksum.json -exec sed -i.uncheck -e 's/"files":{[^}]*}/"files":{ }/' '{}' '+'
340
+
341
+
342
+ - name : Configure
343
+ run : |
344
+ mkdir -p gccrs-build;
345
+ cd gccrs-build;
346
+ ../configure \
347
+ --enable-languages=rust \
348
+ --disable-bootstrap \
349
+ --enable-multilib
350
+ - name : Build
351
+ run : |
352
+ make -C gccrs-build -j $(nproc)
353
+
354
+ - name : Run Tests
355
+ run : |
356
+ cd gccrs-build; \
357
+ make check-rust
You can’t perform that action at this time.
0 commit comments