Replaced ubuntu-18.04 GHA CI images with containers.

Also use ubuntu-latest image for jobs that are running in a container.
This commit is contained in:
Andrey Semashev 2022-08-14 14:20:34 +03:00
parent 5d39709ef0
commit c869f8a9fa

View File

@ -1,4 +1,4 @@
# Copyright 2021 Andrey Semashev # Copyright 2021-2022 Andrey Semashev
# #
# Distributed under the Boost Software License, Version 1.0. # Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt) # (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
@ -35,7 +35,7 @@ jobs:
# Linux, gcc # Linux, gcc
- toolset: gcc-4.4 - toolset: gcc-4.4
cxxstd: "98,0x" cxxstd: "98,0x"
os: ubuntu-20.04 os: ubuntu-latest
container: ubuntu:16.04 container: ubuntu:16.04
install: install:
- g++-4.4 - g++-4.4
@ -43,7 +43,7 @@ jobs:
- "ppa:ubuntu-toolchain-r/test" - "ppa:ubuntu-toolchain-r/test"
- toolset: gcc-4.6 - toolset: gcc-4.6
cxxstd: "03,0x" cxxstd: "03,0x"
os: ubuntu-20.04 os: ubuntu-latest
container: ubuntu:16.04 container: ubuntu:16.04
install: install:
- g++-4.6 - g++-4.6
@ -51,45 +51,50 @@ jobs:
- "ppa:ubuntu-toolchain-r/test" - "ppa:ubuntu-toolchain-r/test"
- toolset: gcc-4.7 - toolset: gcc-4.7
cxxstd: "03,11" cxxstd: "03,11"
os: ubuntu-20.04 os: ubuntu-latest
container: ubuntu:16.04 container: ubuntu:16.04
install: install:
- g++-4.7 - g++-4.7
- toolset: gcc-4.8 - toolset: gcc-4.8
cxxstd: "03,11" cxxstd: "03,11"
os: ubuntu-18.04 os: ubuntu-latest
container: ubuntu:18.04
install: install:
- g++-4.8 - g++-4.8
- toolset: gcc-4.9 - toolset: gcc-4.9
cxxstd: "03,11" cxxstd: "03,11"
os: ubuntu-20.04 os: ubuntu-latest
container: ubuntu:16.04 container: ubuntu:16.04
install: install:
- g++-4.9 - g++-4.9
- toolset: gcc-5 - toolset: gcc-5
cxxstd: "03,11,14,1z" cxxstd: "03,11,14,1z"
os: ubuntu-20.04 os: ubuntu-latest
container: ubuntu:16.04 container: ubuntu:16.04
install: install:
- g++-5 - g++-5
- toolset: gcc-6 - toolset: gcc-6
cxxstd: "03,11,14,1z" cxxstd: "03,11,14,1z"
os: ubuntu-18.04 os: ubuntu-latest
container: ubuntu:18.04
install: install:
- g++-6 - g++-6
- toolset: gcc-7 - toolset: gcc-7
cxxstd: "03,11,14,17" cxxstd: "03,11,14,17"
os: ubuntu-18.04 os: ubuntu-latest
container: ubuntu:18.04
install: install:
- g++-7 - g++-7
- toolset: gcc-8 - toolset: gcc-8
cxxstd: "03,11,14,17,2a" cxxstd: "03,11,14,17,2a"
os: ubuntu-18.04 os: ubuntu-latest
container: ubuntu:18.04
install: install:
- g++-8 - g++-8
- toolset: gcc-9 - toolset: gcc-9
cxxstd: "03,11,14,17,2a" cxxstd: "03,11,14,17,2a"
os: ubuntu-18.04 os: ubuntu-latest
container: ubuntu:18.04
install: install:
- g++-9 - g++-9
- toolset: gcc-10 - toolset: gcc-10
@ -119,66 +124,72 @@ jobs:
- toolset: clang - toolset: clang
compiler: clang++-3.5 compiler: clang++-3.5
cxxstd: "03,11" cxxstd: "03,11"
os: ubuntu-20.04 os: ubuntu-latest
container: ubuntu:16.04 container: ubuntu:16.04
install: install:
- clang-3.5 - clang-3.5
- toolset: clang - toolset: clang
compiler: clang++-3.6 compiler: clang++-3.6
cxxstd: "03,11,14" cxxstd: "03,11,14"
os: ubuntu-20.04 os: ubuntu-latest
container: ubuntu:16.04 container: ubuntu:16.04
install: install:
- clang-3.6 - clang-3.6
- toolset: clang - toolset: clang
compiler: clang++-3.7 compiler: clang++-3.7
cxxstd: "03,11,14" cxxstd: "03,11,14"
os: ubuntu-20.04 os: ubuntu-latest
container: ubuntu:16.04 container: ubuntu:16.04
install: install:
- clang-3.7 - clang-3.7
- toolset: clang - toolset: clang
compiler: clang++-3.8 compiler: clang++-3.8
cxxstd: "03,11,14" cxxstd: "03,11,14"
os: ubuntu-20.04 os: ubuntu-latest
container: ubuntu:16.04 container: ubuntu:16.04
install: install:
- clang-3.8 - clang-3.8
- toolset: clang - toolset: clang
compiler: clang++-3.9 compiler: clang++-3.9
cxxstd: "03,11,14" cxxstd: "03,11,14"
os: ubuntu-18.04 os: ubuntu-latest
container: ubuntu:18.04
install: install:
- clang-3.9 - clang-3.9
- toolset: clang - toolset: clang
compiler: clang++-4.0 compiler: clang++-4.0
cxxstd: "03,11,14" cxxstd: "03,11,14"
os: ubuntu-18.04 os: ubuntu-latest
container: ubuntu:18.04
install: install:
- clang-4.0 - clang-4.0
- toolset: clang - toolset: clang
compiler: clang++-5.0 compiler: clang++-5.0
cxxstd: "03,11,14,1z" cxxstd: "03,11,14,1z"
os: ubuntu-18.04 os: ubuntu-latest
container: ubuntu:18.04
install: install:
- clang-5.0 - clang-5.0
- toolset: clang - toolset: clang
compiler: clang++-6.0 compiler: clang++-6.0
cxxstd: "03,11,14,17" cxxstd: "03,11,14,17"
os: ubuntu-18.04 os: ubuntu-latest
container: ubuntu:18.04
install: install:
- clang-6.0 - clang-6.0
- toolset: clang - toolset: clang
compiler: clang++-7 compiler: clang++-7
cxxstd: "03,11,14,17" cxxstd: "03,11,14,17"
os: ubuntu-18.04 os: ubuntu-latest
container: ubuntu:18.04
install: install:
- clang-7 - clang-7
# Note: clang-8 does not fully support C++20, so it is not compatible with libstdc++-8 in this mode # Note: clang-8 does not fully support C++20, so it is not compatible with libstdc++-8 in this mode
- toolset: clang - toolset: clang
compiler: clang++-8 compiler: clang++-8
cxxstd: "03,11,14,17,2a" cxxstd: "03,11,14,17,2a"
os: ubuntu-18.04 os: ubuntu-latest
container: ubuntu:18.04
install: install:
- clang-8 - clang-8
- g++-7 - g++-7