-
-
Notifications
You must be signed in to change notification settings - Fork 144
48 lines (37 loc) · 1.29 KB
/
win_ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Windows CI
on: [push, pull_request]
jobs:
Test:
# runs-on: windows-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- windows-2022
- windows-2019
build_type:
- Release
- Debug
standard: [14, 17, 20, 23]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Install Boost
run: choco install boost-msvc-14.1
- name: Install ASIO standalone
run: |
curl -L -o asio.zip https://github.com/chriskohlhoff/asio/archive/refs/tags/asio-1-18-2.zip
tar -xf asio.zip
move asio-asio-1-18-2 asio
- name: Configure CMake
run: cmake -S . -B build -DCMAKE_BUILD_TYPE:STRING=${{matrix.build_type}} -DASIO_INCLUDEDIR=${{ github.workspace }}/asio/asio/include -DCLI_BuildTests=ON -DCLI_BuildExamples=ON -DCLI_UseBoostAsio=ON -DCMAKE_CXX_STANDARD=${{matrix.standard}}
- name: Build
run: cmake --build build --config ${{matrix.build_type}}
# - name: Run tests
# working-directory: build/test/${{matrix.build_type}}
# run: ./test_suite -l all
# working-directory: build
# run: ctest -C ${{matrix.build_type}} --output-on-failure --debug