Skip to content

Commit 10bbc8a

Browse files
committed
Add Windows CI
1 parent dcee6a9 commit 10bbc8a

1 file changed

Lines changed: 27 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,30 @@ jobs:
1313
with_linting: true
1414
with_musl: true
1515
secrets:
16-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
16+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
17+
18+
windows:
19+
runs-on: windows-latest
20+
steps:
21+
- uses: compnerd/gha-setup-swift@main
22+
with:
23+
branch: swift-6.0-release
24+
tag: 6.0-RELEASE
25+
- name: Download zlib
26+
run: |
27+
curl -L -o zlib.zip https://www.zlib.net/zlib131.zip
28+
mkdir zlib-131
29+
tar -xf zlib.zip -C zlib-131 --strip-components=1
30+
- name: Build and install zlib
31+
run: |
32+
cd zlib-131
33+
mkdir build
34+
cd build
35+
cmake ..
36+
cmake --build . --config Release
37+
cmake --install . --prefix ../install
38+
- name: Check out code
39+
uses: actions/checkout@v4
40+
- name: Run unit tests
41+
run: |
42+
swift test -Xcc -I'C:/Program Files (x86)/zlib/include' -Xlinker -L'C:/Program Files (x86)/zlib/lib'

0 commit comments

Comments
 (0)