11name : Build and test (cmake based build)
22
3+ # on: push
34on :
45 push :
56 branches : [ "master" ]
@@ -17,14 +18,14 @@ jobs:
1718 # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
1819 runs-on : ${{ matrix.os }}
1920 strategy :
20- fail-fast : false
21+ fail-fast : true
2122 matrix :
2223 os : [ ubuntu-latest, ubuntu-20.04,
23- macos-latest, macos-11
24+ macos-latest, macos-11,
25+ windows-latest
2426 ]
25- # ubuntu-18.04 does not work due to compile error on asio
26- # windows-latest, windows-2019 - wip missing asio lib install
27-
27+ # ubuntu-18.04 does not work due to compile error on asio
28+ # windows-2019 not included to spare free minutes
2829 steps :
2930 - uses : actions/checkout@v3
3031 - name : Prepare dependencies
@@ -33,13 +34,11 @@ jobs:
3334 sudo apt-get update && \
3435 sudo apt-get install -yq \
3536 libasio-dev \
36- cmake \
37- graphviz doxygen
37+ cmake
3838 elif [ "$RUNNER_OS" == "Windows" ]; then
39- vcpkg install;
40- choco install graphviz doxygen.install
39+ VCPKG_DEFAULT_TRIPLET=x64-windows vcpkg install
4140 elif [ "$RUNNER_OS" == "macOS" ]; then
42- brew install asio graphviz doxygen
41+ brew install asio
4342 else
4443 echo "$RUNNER_OS not supported"
4544 exit 1
@@ -48,13 +47,11 @@ jobs:
4847
4948 - name : Configure CMake
5049 run : |
51- if [ "$RUNNER_OS" == "Windows" ]; then
52- mkdir build;
53- cd build;
54- cmake .. -DCMAKE_TOOLCHAIN_FILE="%VCPKG_ROOT%\scripts\buildsystems\vcpkg.cmake" ..
55- else
50+ if [ "$RUNNER_OS" == "Windows" ]; then
51+ cmake -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -B build
52+ else
5653 cmake -B build
57- fi
54+ fi
5855 shell : bash
5956 - name : Build
6057 # Build your program with the given configuration
0 commit comments