Skip to content

Commit 5ca8a25

Browse files
committed
Add Windows to CI matrix using MSYS2
1 parent 3a9b651 commit 5ca8a25

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,24 @@ jobs:
1111
runs-on: ${{ matrix.os }}
1212
strategy:
1313
matrix:
14-
os: [ubuntu-latest, macos-latest]
14+
os: [ubuntu-latest, macos-latest, windows-latest]
15+
16+
defaults:
17+
run:
18+
shell: ${{ matrix.os == 'windows-latest' && 'msys2 {0}' || 'bash' }}
1519

1620
steps:
1721
- uses: actions/checkout@v4
1822
with:
1923
submodules: recursive
2024

25+
- name: Set up MSYS2 (Windows)
26+
if: runner.os == 'Windows'
27+
uses: msys2/setup-msys2@v2
28+
with:
29+
msystem: MINGW64
30+
install: mingw-w64-x86_64-gcc make mingw-w64-x86_64-gtest
31+
2132
- name: Install dependencies (Linux)
2233
if: runner.os == 'Linux'
2334
run: |

0 commit comments

Comments
 (0)