Skip to content

Commit c7842c7

Browse files
committed
Add a new CI for windows environments
ChangeLog: * .github/workflows/ccpp.yml: Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
1 parent ba8ce7e commit c7842c7

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/ccpp.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,3 +301,53 @@ jobs:
301301
else \
302302
exit 0; \
303303
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+
pacboy: >-
332+
toolchain:p
333+
rust:p
334+
335+
- name: Make Source Read-Only
336+
run: chmod -R a-w *
337+
338+
- name: Configure
339+
run: |
340+
mkdir -p gccrs-build;
341+
cd gccrs-build;
342+
../configure \
343+
--enable-languages=rust \
344+
--disable-bootstrap \
345+
--enable-multilib
346+
- name: Build
347+
run: |
348+
make -C gccrs-build -j $(nproc)
349+
350+
- name: Run Tests
351+
run: |
352+
cd gccrs-build; \
353+
make check-rust

0 commit comments

Comments
 (0)