Try to put all in one CI test file #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |