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 <pierre-emmanuel.patry@embecosm.com>
  • Loading branch information
P-E-P committed May 28, 2024
1 parent ba8ce7e commit aded3aa
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -301,3 +301,49 @@ 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@v4

- name: '${{ matrix.sys }} Install deps'
uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.sys}}
update: true
install: >-
git
dejagnu
base-devel
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
- name: Build
run: |
make -C gccrs-build -j1 # $(nproc)
- name: Run Tests
run: |
cd gccrs-build; \
make check-rust

0 comments on commit aded3aa

Please sign in to comment.