Skip to content

Commit

Permalink
introduce new clang and gcc version
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelMiller- committed May 14, 2024
1 parent a3d8d65 commit a38c538
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
version: [ 16, 17 ]
version: [ 16, 17, 18 ]
config: [ Debug, Release ]

steps:
Expand All @@ -28,10 +28,9 @@ jobs:
wget https://apt.llvm.org/llvm.sh
chmod u+x llvm.sh
sudo ./llvm.sh ${{matrix.version}}
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${{matrix.version}} 110
clang --version
- name: Setup system
- name: Prepare system
run: |
sudo apt install -y libboost-all-dev
Expand All @@ -53,8 +52,8 @@ jobs:
shell: bash
working-directory: ${{runner.workspace}}/build
run: |
export CC=`which clang`
export CXX=`which clang++`
export CC=`which clang-${{matrix.version}}`
export CXX=`which clang-${{matrix.version}}`
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{matrix.config}} -DCMAKE_TOOLCHAIN_FILE=${{runner.workspace}}/vcpkg/scripts/buildsystems/vcpkg.cmake
- name: Build
Expand All @@ -65,4 +64,4 @@ jobs:
- name: Test
working-directory: ${{runner.workspace}}/build
shell: bash
run: ctest --build-config ${{matrix.config}} --rerun-failed --output-on-failure
run: ctest --build-config ${{matrix.config}}
2 changes: 1 addition & 1 deletion .github/workflows/gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
version: [ 12, 13 ]
version: [ 12, 13, 14 ]
config: [ Debug, Release ]

steps:
Expand Down

0 comments on commit a38c538

Please sign in to comment.