|
28 | 28 | cc: "clang" |
29 | 29 | flags: "-Os -fPIE" |
30 | 30 | packager: "apt" |
31 | | - packages: "clang" |
| 31 | + packages: "" |
32 | 32 |
|
33 | 33 | - os: ubuntu-latest |
34 | 34 | cxx: "clang++" |
|
41 | 41 | cc: "clang" |
42 | 42 | flags: "-Os -fPIE" |
43 | 43 | packager: "apt" |
44 | | - packages: "clang" |
| 44 | + packages: "" |
45 | 45 |
|
46 | 46 | - os: ubuntu-latest |
47 | 47 | cxx: "g++" |
|
54 | 54 | cc: "gcc" |
55 | 55 | flags: "-Os -fPIE" |
56 | 56 | packager: "apt" |
57 | | - packages: "gcc" |
| 57 | + packages: "" |
58 | 58 |
|
59 | 59 | - os: ubuntu-latest |
60 | 60 | cxx: "g++" |
|
67 | 67 | cc: "gcc" |
68 | 68 | flags: "-Og -g --coverage -fPIE" |
69 | 69 | packager: "apt" |
70 | | - packages: "gcc lcov" |
| 70 | + packages: "lcov" |
71 | 71 |
|
72 | 72 | - os: macos-latest |
73 | 73 | cxx: "clang++" |
@@ -160,6 +160,11 @@ jobs: |
160 | 160 | path-to-lcov: "./coverage.info" |
161 | 161 | github-token: ${{ secrets.github_token }} |
162 | 162 |
|
| 163 | + - name: Failure display available binaries |
| 164 | + if: ${{ failure() }} |
| 165 | + run: | |
| 166 | + ls -la /usr/bin |
| 167 | +
|
163 | 168 | - name: Failure display selected compiler version |
164 | 169 | if: ${{ failure() }} |
165 | 170 | run: | |
@@ -197,6 +202,159 @@ jobs: |
197 | 202 | run: | |
198 | 203 | DYLD_PRINT_LIBRARIES=1 ${{ github.workspace }}/test/.libs/libbitcoin-node-test |
199 | 204 |
|
| 205 | + verify-install-cmake: |
| 206 | + |
| 207 | + strategy: |
| 208 | + fail-fast: false |
| 209 | + |
| 210 | + matrix: |
| 211 | + include: |
| 212 | + - os: ubuntu-latest |
| 213 | + cxx: "clang++" |
| 214 | + link: "dynamic" |
| 215 | + assert: "debug" |
| 216 | + coverage: "nocov" |
| 217 | + boost: "--build-boost" |
| 218 | + consensus: "" |
| 219 | + icu: "" |
| 220 | + cc: "clang" |
| 221 | + flags: "-Os -fPIE" |
| 222 | + packager: "apt" |
| 223 | + packages: "" |
| 224 | + |
| 225 | + - os: ubuntu-latest |
| 226 | + cxx: "clang++" |
| 227 | + link: "static" |
| 228 | + assert: "ndebug" |
| 229 | + coverage: "nocov" |
| 230 | + boost: "--build-boost" |
| 231 | + consensus: "" |
| 232 | + icu: "--build-icu --with-icu" |
| 233 | + cc: "clang" |
| 234 | + flags: "-Os -fPIE" |
| 235 | + packager: "apt" |
| 236 | + packages: "" |
| 237 | + |
| 238 | + - os: ubuntu-latest |
| 239 | + cxx: "g++" |
| 240 | + link: "dynamic" |
| 241 | + assert: "ndebug" |
| 242 | + coverage: "nocov" |
| 243 | + boost: "--build-boost" |
| 244 | + consensus: "--without-consensus" |
| 245 | + icu: "" |
| 246 | + cc: "gcc" |
| 247 | + flags: "-Os -fPIE" |
| 248 | + packager: "apt" |
| 249 | + packages: "" |
| 250 | + |
| 251 | + - os: macos-latest |
| 252 | + cxx: "clang++" |
| 253 | + link: "dynamic" |
| 254 | + assert: "ndebug" |
| 255 | + coverage: "nocov" |
| 256 | + boost: "--build-boost" |
| 257 | + consensus: "" |
| 258 | + icu: "--build-icu --with-icu" |
| 259 | + cc: "clang" |
| 260 | + flags: "-Os -fPIE" |
| 261 | + packager: "brew" |
| 262 | + packages: "" |
| 263 | + |
| 264 | + - os: macos-latest |
| 265 | + cxx: "clang++" |
| 266 | + link: "static" |
| 267 | + assert: "ndebug" |
| 268 | + coverage: "nocov" |
| 269 | + boost: "--build-boost" |
| 270 | + consensus: "--without-consensus" |
| 271 | + icu: "--build-icu --with-icu" |
| 272 | + cc: "clang" |
| 273 | + flags: "-Os -fvisibility=hidden -fPIE" |
| 274 | + packager: "brew" |
| 275 | + packages: "" |
| 276 | + |
| 277 | + runs-on: ${{ matrix.os }} |
| 278 | + |
| 279 | + env: |
| 280 | + CC: '${{ matrix.cc }}' |
| 281 | + CXX: '${{ matrix.cxx }}' |
| 282 | + CFLAGS: '${{ matrix.flags }}' |
| 283 | + CXXFLAGS: '${{ matrix.flags }}' |
| 284 | + CI_REPOSITORY: '${{ github.repository }}' |
| 285 | + |
| 286 | + steps: |
| 287 | + - name: Checkout repository |
| 288 | + uses: actions/checkout@v2 |
| 289 | + |
| 290 | + - name: Prepare toolchain [apt] |
| 291 | + if: ${{ matrix.packager == 'apt' }} |
| 292 | + run: | |
| 293 | + sudo apt-get update |
| 294 | + sudo apt-get install git build-essential autoconf automake libtool pkg-config ${{ matrix.packages }} |
| 295 | +
|
| 296 | + - name: Prepare toolchain [brew] |
| 297 | + if: ${{ matrix.packager == 'brew' }} |
| 298 | + run: | |
| 299 | + brew install autoconf automake libtool pkg-config ${{ matrix.packages }} |
| 300 | +
|
| 301 | + - name: Denormalize parameterization |
| 302 | + run: | |
| 303 | + if [[ ${{ matrix.packager }} == 'brew' ]]; then |
| 304 | + echo "CMAKE_LIBRARY_PATH=/usr/local/lib" >> $GITHUB_ENV |
| 305 | + fi |
| 306 | + if [[ ${{ matrix.assert }} == 'ndebug' ]]; then |
| 307 | + echo "ASSERT_NDEBUG=--enable-ndebug -Denable-ndebug=yes" >> $GITHUB_ENV |
| 308 | + else |
| 309 | + echo "ASSERT_NDEBUG=--disable-ndebug -Denable-ndebug=no" >> $GITHUB_ENV |
| 310 | + fi |
| 311 | + if [[ ${{ matrix.link }} == 'dynamic' ]]; then |
| 312 | + echo "LINKAGE=--disable-static" >> $GITHUB_ENV |
| 313 | + else |
| 314 | + echo "LINKAGE=--disable-shared" >> $GITHUB_ENV |
| 315 | + fi |
| 316 | + if [[ ${{ matrix.link }} == 'dynamic' ]]; then |
| 317 | + echo "LDFLAGS=-Wl,-rpath,${{ github.workspace }}/prefixenv/lib" >> $GITHUB_ENV |
| 318 | + fi |
| 319 | +
|
| 320 | + - name: Execute install-cmake.sh |
| 321 | + run: > |
| 322 | + ./install-cmake.sh |
| 323 | + --build-dir=${{ github.workspace }}/build |
| 324 | + --prefix=${{ github.workspace }}/prefixenv |
| 325 | + ${{ env.LINKAGE }} |
| 326 | + ${{ env.ASSERT_NDEBUG }} |
| 327 | + ${{ matrix.boost }} |
| 328 | + ${{ matrix.icu }} |
| 329 | + ${{ matrix.consensus }} |
| 330 | +
|
| 331 | + - name: Coveralls Calculation |
| 332 | + if: ${{ matrix.coverage == 'cov' }} |
| 333 | + run: | |
| 334 | + lcov --directory . --capture --output-file coverage.info |
| 335 | + lcov --remove coverage.info "/usr/*" "${{ github.workspace }}/prefixenv/*" "${{ github.workspace }}/build/*" "${{ github.workspace }}/examples/*" "${{ github.workspace }}/test/*" --output-file coverage.info |
| 336 | + lcov --list coverage.info |
| 337 | +
|
| 338 | + - name: Coveralls.io Upload |
| 339 | + if: ${{ matrix.coverage == 'cov' }} |
| 340 | + uses: coverallsapp/github-action@master |
| 341 | + with: |
| 342 | + path-to-lcov: "./coverage.info" |
| 343 | + github-token: ${{ secrets.github_token }} |
| 344 | + |
| 345 | + - name: Failure Display cmake test output |
| 346 | + if: ${{failure() }} |
| 347 | + run: | |
| 348 | + gcc -v |
| 349 | + clang -v |
| 350 | + echo "--- ENVIRONMENT ---" |
| 351 | + env |
| 352 | + echo "--- END ENVIRONMENT ---" |
| 353 | + cat ${{ github.workspace }}/Testing/Temporary/LastTest.log |
| 354 | + ls ${{ github.workspace }}/prefixenv/lib/pkgconfig/ |
| 355 | + cat ${{ github.workspace }}/prefixenv/lib/pkgconfig/*.pc |
| 356 | + ls ${{ github.workspace }}/prefixenv/lib/cmake |
| 357 | +
|
200 | 358 | verify-sln: |
201 | 359 | strategy: |
202 | 360 | fail-fast: false |
|
0 commit comments