Skip to content

Commit 853be15

Browse files
committed
Run tests on WSL
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent 2aadd7f commit 853be15

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ jobs:
6363
- os: windows-latest
6464
type: static
6565
shell: msys2 {0}
66+
- os: windows-latest
67+
type: wsl-2
68+
shell: wsl-bash {0}
6669

6770
defaults:
6871
run:
@@ -79,6 +82,14 @@ jobs:
7982
with:
8083
install: cmake make gcc
8184

85+
# See https://github.com/Vampire/setup-wsl
86+
- uses: Vampire/setup-wsl@v5
87+
if: runner.os == 'windows' && matrix.platform.type == 'wsl-2'
88+
with:
89+
distribution: Ubuntu-22.04
90+
additional-packages: cmake build-essential ca-certificates
91+
wsl-version: 2
92+
8293
- uses: actions/checkout@v4
8394
- name: Install dependencies (macOS)
8495
if: runner.os == 'macos'
@@ -89,7 +100,7 @@ jobs:
89100

90101
- run: cmake --version
91102
- name: Configure (static)
92-
if: matrix.platform.type == 'static'
103+
if: matrix.platform.type == 'static' || matris.platform.type == 'wsl-2'
93104
run: >
94105
cmake -S . -B ./build
95106
-DCMAKE_BUILD_TYPE:STRING=Release

0 commit comments

Comments
 (0)