Skip to content

Commit

Permalink
Added more compilers to GitHub Actions CI, removed macos-12 job.
Browse files Browse the repository at this point in the history
Added more recent gcc and clang versions, reduced usage of external package
repositories. macos-12 image is now removed from GitHub Actions, so removed
the CI job based on it.
  • Loading branch information
Lastique committed Dec 15, 2024
1 parent 5e2e016 commit 037f686
Showing 1 changed file with 58 additions and 29 deletions.
87 changes: 58 additions & 29 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,22 +155,31 @@ jobs:
cxxstd64: "11,14,17,20,23,11-gnu,14-gnu,17-gnu,20-gnu,23-gnu"
cxxstd32: "11,11-gnu"
os: ubuntu-latest
container: ubuntu:23.04
container: ubuntu:24.04
install:
- g++-13
- g++-13-multilib
- linux-libc-dev:i386
- toolset: gcc-14
cxxstd64: "11,14,17,20,23,11-gnu,14-gnu,17-gnu,20-gnu,23-gnu,26-gnu"
cxxstd32: "11,11-gnu"
os: ubuntu-latest
container: ubuntu:24.04
install:
- g++-14
- g++-14-multilib
- linux-libc-dev:i386
- name: UBSAN
toolset: gcc-11
toolset: gcc-13
cxxstd64: "11,14,17,20,23,11-gnu,14-gnu,17-gnu,20-gnu,23-gnu"
cxxstd32: "11,11-gnu"
ubsan: 1
build_variant: debug
os: ubuntu-latest
container: ubuntu:22.04
container: ubuntu:24.04
install:
- g++-11
- g++-11-multilib
- g++-13
- g++-13-multilib
- linux-libc-dev:i386

# Linux, clang
Expand Down Expand Up @@ -396,64 +405,79 @@ jobs:
cxxstd64: "11,14,17,20,2b,11-gnu,14-gnu,17-gnu,20-gnu,2b-gnu"
cxxstd32: "11,11-gnu"
os: ubuntu-latest
container: ubuntu:22.04
container: ubuntu:24.04
install:
- clang-16
- g++-11
- g++-11-multilib
- linux-libc-dev:i386
gcc_toolchain: 11
sources:
- "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main"
source_keys:
- "https://apt.llvm.org/llvm-snapshot.gpg.key"
- toolset: clang
compiler: clang++-17
cxxstd64: "11,14,17,20,23,11-gnu,14-gnu,17-gnu,20-gnu,23-gnu"
cxxstd32: "11,11-gnu"
os: ubuntu-latest
container: ubuntu:22.04
container: ubuntu:24.04
install:
- clang-17
- g++-11
- g++-11-multilib
- linux-libc-dev:i386
gcc_toolchain: 11
- toolset: clang
compiler: clang++-18
cxxstd64: "11,14,17,20,23,11-gnu,14-gnu,17-gnu,20-gnu,23-gnu,26-gnu"
cxxstd32: "11,11-gnu"
os: ubuntu-latest
container: ubuntu:24.04
install:
- clang-18
- g++-13
- g++-13-multilib
- linux-libc-dev:i386
- toolset: clang
compiler: clang++-19
cxxstd64: "11,14,17,20,23,11-gnu,14-gnu,17-gnu,20-gnu,23-gnu,26-gnu"
cxxstd32: "11,11-gnu"
os: ubuntu-latest
container: ubuntu:24.04
install:
- clang-19
- g++-13
- g++-13-multilib
- linux-libc-dev:i386
sources:
- "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main"
- "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-19 main"
source_keys:
- "https://apt.llvm.org/llvm-snapshot.gpg.key"
- toolset: clang
compiler: clang++-17
cxxstd64: "11,14,17,20,23"
compiler: clang++-19
cxxstd64: "11,14,17,20,23,26"
cxxflags: -stdlib=libc++
linkflags: -stdlib=libc++
os: ubuntu-22.04
os: ubuntu-24.04
install:
- clang-17
- libc++-17-dev
- libc++abi-17-dev
- clang-19
- libc++-19-dev
- libc++abi-19-dev
sources:
- "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main"
- "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-19 main"
source_keys:
- "https://apt.llvm.org/llvm-snapshot.gpg.key"
- name: UBSAN
toolset: clang
compiler: clang++-15
cxxstd64: "11,14,17,20,2b,11-gnu,14-gnu,17-gnu,20-gnu,2b-gnu"
compiler: clang++-18
cxxstd64: "11,14,17,20,23,26,11-gnu,14-gnu,17-gnu,20-gnu,23-gnu,26-gnu"
cxxflags: -stdlib=libc++
linkflags: -stdlib=libc++
ubsan: 1
build_variant: debug
os: ubuntu-22.04
os: ubuntu-24.04
install:
- clang-15
- libc++-15-dev
- libc++abi-15-dev
- clang-18
- libc++-18-dev
- libc++abi-18-dev

- toolset: clang
cxxstd64: "11,14,17,20,2b"
os: macos-12
- toolset: clang
cxxstd64: "11,14,17,20,2b"
os: macos-13
Expand Down Expand Up @@ -768,9 +792,13 @@ jobs:
cxxstd64: "11-gnu,14-gnu,17-gnu,2a-gnu"
os: windows-2019

- name: CMake tests
- name: CMake MSVC tests
cmake_tests: 1
os: windows-2022
- name: CMake MinGW-w64 tests
cmake_tests: 1
os: windows-2022
cmake_generator: "MinGW Makefiles"

timeout-minutes: 30
runs-on: ${{matrix.os}}
Expand Down Expand Up @@ -840,6 +868,7 @@ jobs:
- name: Build CMake tests
if: matrix.cmake_tests
run: |
if not "${{matrix.cmake_generator}}" == "" set "CMAKE_GENERATOR=${{matrix.cmake_generator}}"
cd boost-root
mkdir __build_static__
cd __build_static__
Expand Down

0 comments on commit 037f686

Please sign in to comment.