Skip to content

Commit

Permalink
ci: add more versions of clang
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d-mitchell committed Jan 30, 2025
1 parent a9912c2 commit d228f0a
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/runtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:
- { compiler: 'gcc', version: '12'}
- { compiler: 'gcc', version: '13'}
- { compiler: 'gcc', version: '14'}
- { compiler: 'clang', version: '11'}
- { compiler: 'clang', version: '12'}
- { compiler: 'clang', version: '13'}
- { compiler: 'clang', version: '14'}
- { compiler: 'clang', version: '15'}
- { compiler: 'clang', version: '16'}
- { compiler: 'clang', version: '17'}
- { compiler: 'clang', version: '18'}
Expand Down Expand Up @@ -49,7 +54,7 @@ jobs:
CXX=g++-$GCC_VERSION
echo "CXX=$CXX" >> $GITHUB_ENV
- name: "Setup compiler (clang, version >= 16) . . ."
if: ${{ matrix.sys.compiler == 'clang' }}
if: ${{ matrix.sys.compiler == 'clang' && fromJSON(matrix.sys.version) >= fromJSON('16')}}
run: |
LLVM_VERSION=${{ matrix.sys.version }}
sudo apt-get --yes update
Expand All @@ -58,6 +63,16 @@ jobs:
echo "CC=$CC" >> $GITHUB_ENV
CXX=clang++-$LLVM_VERSION
echo "CXX=$CXX" >> $GITHUB_ENV
- name: "Setup compiler (clang, version < 16) . . ."
if: ${{ matrix.sys.compiler == 'clang' && fromJSON(matrix.sys.version) < fromJSON('16')}}
run: |
LLVM_VERSION=${{ matrix.sys.version }}
brew install llvm@$LLVM_VERSION
echo "CXX=$CXX" >> $GITHUB_ENV
CC=clang-$LLVM_VERSION
echo "CC=$CC" >> $GITHUB_ENV
CXX=clang++-$LLVM_VERSION
echo "CXX=$CXX" >> $GITHUB_ENV
- name: "Install dependencies . . ."
run: |
sudo apt-get install --yes ccache
Expand Down

0 comments on commit d228f0a

Please sign in to comment.