1- # Copyright 2019 - 2022 Alexander Grund
1+ # Copyright 2019 - 2024 Alexander Grund
22# Distributed under the Boost Software License, Version 1.0.
33# https://www.boost.org/LICENSE_1_0.txt
44
@@ -48,10 +48,10 @@ jobs:
4848 DEP_DIR : ${{github.workspace}}/dependencies
4949 BOOST_VERSION : 1.56.0
5050 steps :
51- - uses : actions/checkout@v3
51+ - uses : actions/checkout@v4
5252 - name : Sanity check version
5353 run : grep -E 'set\(_version [0-9]' CMakeLists.txt
54- - uses : actions/cache@v1
54+ - uses : actions/cache@v4
5555 id : cache-boost
5656 with :
5757 path : ${{env.DEP_DIR}}
6464 if : matrix.standalone == 'Boost'
6565 run : echo "BOOST_ROOT=${DEP_DIR//\\/\/}/boost_${BOOST_VERSION//./_}" >> $GITHUB_ENV
6666 # Install Boost
67- - uses : actions/checkout@v3
67+ - uses : actions/checkout@v4
6868 if : matrix.standalone == 'Boost' && steps.cache-boost.outputs.cache-hit != 'true'
6969 with :
7070 repository : boostorg/boost
@@ -102,18 +102,24 @@ jobs:
102102 extraFlags="$extraFlags -DCMAKE_CXX_FLAGS=-Wundef"
103103 fi
104104 cmake -DCMAKE_BUILD_TYPE=${{matrix.buildType}} -DBUILD_SHARED_LIBS=${{matrix.shared_lib}} -G "${{matrix.generator}}" $extraFlags ..
105- - name : Build & Install
106- run : cmake --build build --config ${{matrix.buildType}} --target install
105+ - name : Build
106+ run : cmake --build build --config ${{matrix.buildType}} --target tests
107107
108108 # Run test with both bash and powershell and watch for "Using std::cin" on bash but not on powershell
109109 - name : Test
110110 working-directory : build
111- run : ctest --output-on-failure -C ${{matrix.buildType}} --verbose
111+ run : |
112+ # The bash shell adds an incompatible PATH for MinGW: https://github.com/actions/runner-images/issues/11102
113+ [[ "${{runner.os}}" != 'Windows' ]] || export PATH="/c/mingw64/bin:$PATH"
114+ ctest --output-on-failure -C ${{matrix.buildType}} --verbose
112115 - name : Test on PowerShell
113116 working-directory : build
114117 shell : powershell
115118 if : runner.os == 'Windows'
116119 run : ctest --output-on-failure -C ${{matrix.buildType}} --verbose
120+
121+ - name : Install
122+ run : cmake --build build --config ${{matrix.buildType}} --target install
117123 - name : Test consumption
118124 working-directory : build
119125 run : |
@@ -125,7 +131,7 @@ jobs:
125131 CreateDocuTest :
126132 runs-on : ubuntu-latest
127133 steps :
128- - uses : actions/checkout@v1
134+ - uses : actions/checkout@v4
129135 - name : Create documentation
130136 run : |
131137 sudo apt-get install -y doxygen
@@ -134,9 +140,9 @@ jobs:
134140 CreateBoostDocuTest :
135141 runs-on : ubuntu-latest
136142 steps :
137- - uses : actions/checkout@v3
143+ - uses : actions/checkout@v4
138144 - name : Fetch Boost.CI
139- uses : actions/checkout@v3
145+ uses : actions/checkout@v4
140146 with :
141147 repository : boostorg/boost-ci
142148 ref : master
@@ -153,8 +159,8 @@ jobs:
153159 CheckFormatting :
154160 runs-on : ubuntu-latest
155161 steps :
156- - uses : actions/checkout@v3
157- - uses : DoozyX/clang-format-lint-action@v0.11
162+ - uses : actions/checkout@v4
163+ - uses : DoozyX/clang-format-lint-action@v0.18
158164 with :
159165 exclude : ' ./doc'
160166 clangFormatVersion : 10
0 commit comments