Skip to content

Commit

Permalink
Use clang-17 on Ubuntu (temporary solution)
Browse files Browse the repository at this point in the history
  • Loading branch information
vt4a2h committed Dec 30, 2023
1 parent ef91d9e commit 9fef8ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
matrix:
os: [ubuntu-22.04]
build_type: [Debug, Release]
preset: [gcc-12, clang-14]
preset: [gcc-12, clang-17]
runs-on: ${{ matrix.os }}
steps:
- name: Check out code
Expand All @@ -22,6 +22,11 @@ jobs:
run: |
sudo apt update || exit $?
sudo apt -y install ninja-build || exit $?
- name: Install clang-17
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x ./llvm.sh
sudo ./llvm.sh 17
- name: Configure
run: |
cmake -S . -B cmake-build --preset ${{ matrix.preset }} \
Expand Down
6 changes: 3 additions & 3 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
},
"configurePresets": [
{
"name": "clang-14",
"name": "clang-17",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang-14",
"CMAKE_CXX_COMPILER": "clang++-14"
"CMAKE_C_COMPILER": "clang-17",
"CMAKE_CXX_COMPILER": "clang++-17"
},
"condition": {
"type": "notEquals",
Expand Down

0 comments on commit 9fef8ad

Please sign in to comment.