Skip to content

Commit

Permalink
Add a new CI for windows environments
Browse files Browse the repository at this point in the history
ChangeLog:

	* .github/workflows/ccpp.yml:

Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
  • Loading branch information
P-E-P committed May 5, 2024
1 parent ba8ce7e commit b8b4055
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -301,3 +301,50 @@ jobs:
else \
exit 0; \
fi
build-and-check-windows:
runs-on: windows-latest
strategy:
matrix:
include:
- { sys: mingw64, env: x86_64 }
- { sys: mingw32, env: i686 }
name: 'Windows ${{ matrix.env }} ${{ matrix.sys }}'
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v3

- name: '${{ matrix.sys }} Install deps'
uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.sys}}
update: true
install: >-
git
make
dejagnu
mpc
mpfr
gmp
curl
pacboy: >-
toolchain:p
rust:p
- name: Configure
run: |
mkdir -p gccrs-build;
cd gccrs-build;
../configure \
--enable-languages=rust \
--disable-bootstrap \
--enable-multilib
- name: Build
run: |
make -C gccrs-build -j $(nproc)
- name: Run Tests
run: |
cd gccrs-build; \
make check-rust

0 comments on commit b8b4055

Please sign in to comment.