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 7, 2024
1 parent ba8ce7e commit 2549f88
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -301,3 +301,57 @@ 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
sed
findutils
diffutils
pacboy: >-
toolchain:p
rust:p
- run: |
find . -name .cargo-checksum.json -exec sed -i.uncheck -e 's/"files":{[^}]*}/"files":{ }/' '{}' '+'
- 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 2549f88

Please sign in to comment.