Skip to content

Commit b8e681a

Browse files
committed
Add msys2 test
1 parent 7dd02fa commit b8e681a

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.github/workflows/actions_cpp.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
push:
44
pull_request:
55
jobs:
6-
windows-latest:
6+
windows-msvc:
77
runs-on: 'windows-latest'
88
steps:
99
- uses: actions/checkout@v4
@@ -22,6 +22,32 @@ jobs:
2222
run: |
2323
cd CPP/build
2424
ctest . -C RelWithDebInfo --output-on-failure
25+
windows-msys2:
26+
runs-on: 'windows-latest'
27+
defaults:
28+
run:
29+
shell: msys2 {0}
30+
steps:
31+
- uses: actions/checkout@v4
32+
- uses: msys2/setup-msys2@v2
33+
with:
34+
msystem: UCRT64
35+
update: true
36+
pacboy: >-
37+
git:
38+
make:
39+
toolchain:p
40+
cmake:p
41+
- name: Build
42+
run: |
43+
mkdir CPP/build
44+
cd CPP/build
45+
cmake .. -G "MSYS Makefiles" -DCLIPPER2_TESTS=ON
46+
cmake --build . --parallel
47+
- name: Run tests
48+
run: |
49+
cd CPP/build
50+
ctest . --output-on-failure
2551
ubuntu-latest-gcc-default:
2652
runs-on: 'ubuntu-latest'
2753
steps:

0 commit comments

Comments
 (0)