1
- # Copyright 2019 - 2022 Alexander Grund
1
+ # Copyright 2019 - 2024 Alexander Grund
2
2
# Distributed under the Boost Software License, Version 1.0.
3
3
# https://www.boost.org/LICENSE_1_0.txt
4
4
@@ -48,10 +48,10 @@ jobs:
48
48
DEP_DIR : ${{github.workspace}}/dependencies
49
49
BOOST_VERSION : 1.56.0
50
50
steps :
51
- - uses : actions/checkout@v3
51
+ - uses : actions/checkout@v4
52
52
- name : Sanity check version
53
53
run : grep -E 'set\(_version [0-9]' CMakeLists.txt
54
- - uses : actions/cache@v1
54
+ - uses : actions/cache@v4
55
55
id : cache-boost
56
56
with :
57
57
path : ${{env.DEP_DIR}}
64
64
if : matrix.standalone == 'Boost'
65
65
run : echo "BOOST_ROOT=${DEP_DIR//\\/\/}/boost_${BOOST_VERSION//./_}" >> $GITHUB_ENV
66
66
# Install Boost
67
- - uses : actions/checkout@v3
67
+ - uses : actions/checkout@v4
68
68
if : matrix.standalone == 'Boost' && steps.cache-boost.outputs.cache-hit != 'true'
69
69
with :
70
70
repository : boostorg/boost
@@ -102,18 +102,24 @@ jobs:
102
102
extraFlags="$extraFlags -DCMAKE_CXX_FLAGS=-Wundef"
103
103
fi
104
104
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
107
107
108
108
# Run test with both bash and powershell and watch for "Using std::cin" on bash but not on powershell
109
109
- name : Test
110
110
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
112
115
- name : Test on PowerShell
113
116
working-directory : build
114
117
shell : powershell
115
118
if : runner.os == 'Windows'
116
119
run : ctest --output-on-failure -C ${{matrix.buildType}} --verbose
120
+
121
+ - name : Install
122
+ run : cmake --build build --config ${{matrix.buildType}} --target install
117
123
- name : Test consumption
118
124
working-directory : build
119
125
run : |
@@ -125,7 +131,7 @@ jobs:
125
131
CreateDocuTest :
126
132
runs-on : ubuntu-latest
127
133
steps :
128
- - uses : actions/checkout@v1
134
+ - uses : actions/checkout@v4
129
135
- name : Create documentation
130
136
run : |
131
137
sudo apt-get install -y doxygen
@@ -134,9 +140,9 @@ jobs:
134
140
CreateBoostDocuTest :
135
141
runs-on : ubuntu-latest
136
142
steps :
137
- - uses : actions/checkout@v3
143
+ - uses : actions/checkout@v4
138
144
- name : Fetch Boost.CI
139
- uses : actions/checkout@v3
145
+ uses : actions/checkout@v4
140
146
with :
141
147
repository : boostorg/boost-ci
142
148
ref : master
@@ -153,8 +159,8 @@ jobs:
153
159
CheckFormatting :
154
160
runs-on : ubuntu-latest
155
161
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
158
164
with :
159
165
exclude : ' ./doc'
160
166
clangFormatVersion : 10
0 commit comments