Skip to content

Commit

Permalink
Run CI jobs on ubuntu-24.04 for compilers which are not installed on …
Browse files Browse the repository at this point in the history
…ubuntu-22.04
  • Loading branch information
danielkrupinski committed Sep 5, 2024
1 parent d96d7f0 commit 10ebfbd
Showing 1 changed file with 23 additions and 31 deletions.
54 changes: 23 additions & 31 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,47 +7,39 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
compiler: [g++-11, g++-12, g++-13, clang++-15, clang++-16, clang++-17, clang++-18, clang++-19]
os: [ubuntu-22.04, ubuntu-24.04]
compiler: [g++-11, g++-12, g++-13, g++-14, clang++-15, clang++-16, clang++-17, clang++-18, clang++-19]
configuration: [Debug, Release]
include:
- os: ubuntu-24.04
exclude:
- os: ubuntu-22.04
compiler: g++-13
- os: ubuntu-22.04
compiler: g++-14
configuration: Debug
- os: ubuntu-22.04
compiler: clang++-16
- os: ubuntu-22.04
compiler: clang++-17
- os: ubuntu-22.04
compiler: clang++-18
- os: ubuntu-22.04
compiler: clang++-19

- os: ubuntu-24.04
compiler: g++-14
configuration: Release
compiler: g++-11
- os: ubuntu-24.04
compiler: g++-12
- os: ubuntu-24.04
compiler: clang++-15

steps:
- uses: actions/checkout@v4
- name: install g++-13
if: matrix.compiler == 'g++-13' || matrix.compiler == 'clang++-18' || matrix.compiler == 'clang++-19'
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update && sudo apt-get install -y g++-13
- name: install clang++-16
if: matrix.compiler == 'clang++-16'
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 16
- name: install clang++-17
if: matrix.compiler == 'clang++-17'
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 17
- name: install clang++-18
if: matrix.compiler == 'clang++-18'
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 18
- name: install clang++-19
- name: prepare clang++-19
if: matrix.compiler == 'clang++-19'
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 19
echo "CXXFLAGS=\"--gcc-install-dir=/usr/lib/gcc/x86_64-linux-gnu/13\"" >> "$GITHUB_ENV"
- name: configure
run: CXX=${{ matrix.compiler }} cmake -Werror=dev -D CMAKE_BUILD_TYPE=${{ matrix.configuration }} -D BUILD_TESTS=1 -D CMAKE_COMPILE_WARNING_AS_ERROR=1 -B build
- name: build source
Expand Down

0 comments on commit 10ebfbd

Please sign in to comment.