Skip to content

Commit 8dacd64

Browse files
mloskotmeshtag
authored andcommitted
ci: Fix availability of toolsets in updated Ubuntu images of GitHub Actions (boostorg#589)
The `compiler` property should trigger creation of `user-config.jam` with the expected GCC 8 defined. Something has changed on the GitHub Actions images or Boost.Build and GCC 8 build job started failing: /home/runner/work/gil/boost-root/tools/build/src/tools/gcc.jam:203: in gcc.init from module gcc error: toolset gcc initialization: error: version '8' requested but 'g++-8' not found and version '7.5.0' of default 'g++' does not match e.g. https://github.com/boostorg/gil/pull/562/checks?check_run_id=2246393722 The compilers should be `install`-ed explicitly to avoid such issues in future.
1 parent e82ba4a commit 8dacd64

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ jobs:
1919
- toolset: gcc-7
2020
cxxstd: "11,14,17"
2121
os: ubuntu-18.04
22-
- toolset: gcc-8
22+
- toolset: gcc
23+
compiler: g++-8
2324
cxxstd: "11,14,17,2a"
2425
os: ubuntu-18.04
26+
install: g++-8
2527
- toolset: gcc-9
2628
cxxstd: "11,14,17,2a"
2729
os: ubuntu-18.04
@@ -70,6 +72,7 @@ jobs:
7072
compiler: clang++-6.0
7173
cxxstd: "11,14,17"
7274
os: ubuntu-18.04
75+
install: clang-6.0
7376
- toolset: clang
7477
compiler: clang++-7
7578
cxxstd: "11,14,17"
@@ -79,6 +82,7 @@ jobs:
7982
compiler: clang++-8
8083
cxxstd: "11,14,17,2a"
8184
os: ubuntu-20.04
85+
install: clang-8
8286
- toolset: clang
8387
compiler: clang++-9
8488
cxxstd: "11,14,17,2a"
@@ -117,6 +121,7 @@ jobs:
117121
if: matrix.compiler
118122
run: |
119123
echo "using ${{matrix.toolset}} : : ${{matrix.compiler}} ;" > ~/user-config.jam
124+
cat ~/user-config.jam
120125
121126
- name: Run tests
122127
if: "!matrix.define"

0 commit comments

Comments
 (0)