Skip to content

Commit

Permalink
fix ci - frist take
Browse files Browse the repository at this point in the history
  • Loading branch information
Viatorus committed Sep 19, 2024
1 parent 43dd8eb commit a961aa9
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,17 @@ jobs:
unit-tests:
strategy:
matrix:
compiler: [ gcc-11, gcc-12, gcc-13, clang-16, clang-17 ]
env: [ {os: ubuntu-22.04, compiler: gcc-11},
{os: ubuntu-22.04, compiler: gcc-12},
{os: ubuntu-24.04, compiler: gcc-13},
{os: ubuntu-22.04, compiler: clang-16},
{os: ubuntu-22.04, compiler: clang-17},
{os: ubuntu-24.04, compiler: clang-18},
{os: ubuntu-24.04, compiler: clang-19}
]
build_type: [ Debug, Release ]

runs-on: ubuntu-22.04
runs-on: ${{ matrix.env.os }}

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -84,9 +91,21 @@ jobs:
sudo apt update && sudo apt install -y clang-17
echo "CC=clang-17" >> $GITHUB_ENV
echo "CXX=clang++-17" >> $GITHUB_ENV
elif [[ "$compiler" == "clang-18" ]]; then
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-noble-18 main'
sudo apt update && sudo apt install -y clang-18
echo "CC=clang-18" >> $GITHUB_ENV
echo "CXX=clang++-18" >> $GITHUB_ENV
elif [[ "$compiler" == "clang-19" ]]; then
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-noble-19 main'
sudo apt update && sudo apt install -y clang-19
echo "CC=clang-19" >> $GITHUB_ENV
echo "CXX=clang++-19" >> $GITHUB_ENV
fi
env:
compiler: ${{ matrix.compiler }}
compiler: ${{ matrix.env.compiler }}

- name: Configure
run: cmake --preset=ci-ubuntu -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
Expand Down

0 comments on commit a961aa9

Please sign in to comment.