Skip to content

Commit

Permalink
ci: use new versions of gcc + clang
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d-mitchell committed Jan 30, 2025
1 parent 8c587c1 commit 8b9bc5d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ workflows:
- test:
name: "test-clang-15"
compiler: "clang"
version: "15"
version: "15"
42 changes: 31 additions & 11 deletions .github/workflows/runtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ concurrency:

jobs:
tests:
name: "ubuntu-22.04"
name: "ubuntu-latest"
timeout-minutes: 60
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
Expand All @@ -18,16 +18,21 @@ jobs:
- { compiler: 'gcc', version: '10'}
- { compiler: 'gcc', version: '11'}
- { compiler: 'gcc', version: '12'}
- { compiler: 'clang', version: '11'}
- { compiler: 'clang', version: '12'}
- { compiler: 'clang', version: '13'}
- { compiler: 'gcc', version: '13'}
- { compiler: 'gcc', version: '14'}
- { compiler: 'clang', version: '14'}
- { compiler: 'clang', version: '15'}
- { compiler: 'clang', version: '16'}
- { compiler: 'clang', version: '17'}
- { compiler: 'clang', version: '18'}
steps:
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: "Checkout HPCombi repo . . ."
uses: actions/checkout@v3
- name: "Setup compiler . . ."
if: ${{ matrix.sys.compiler == 'gcc' }}
- name: "Setup compiler (gcc, version >= 12) . . ."
if: ${{ matrix.sys.compiler == 'gcc' && fromJSON(matrix.sys.version) >= fromJSON('12')}}
run: |
GCC_VERSION=${{ matrix.sys.version }}
sudo apt-get --yes update
Expand All @@ -36,8 +41,17 @@ jobs:
echo "CC=$CC" >> $GITHUB_ENV
CXX=g++-$GCC_VERSION
echo "CXX=$CXX" >> $GITHUB_ENV
- name: "Setup compiler . . ."
if: ${{ matrix.sys.compiler == 'clang' }}
- name: "Setup compiler (gcc, version < 12) . . ."
if: ${{ matrix.sys.compiler == 'gcc' && fromJSON(matrix.sys.version) < fromJSON('12')}}
run: |
GCC_VERSION=${{ matrix.sys.version }}
brew install gcc@$GCC_VERSION
CC=gcc-$GCC_VERSION
echo "CC=$CC" >> $GITHUB_ENV
CXX=g++-$GCC_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 }}
sudo apt-get --yes update
Expand All @@ -46,9 +60,15 @@ jobs:
echo "CC=$CC" >> $GITHUB_ENV
CXX=clang++-$LLVM_VERSION
echo "CXX=$CXX" >> $GITHUB_ENV
- name: "Install dependencies . . ."
- name: "Setup compiler (clang, version < 16) . . ."
if: ${{ matrix.sys.compiler == 'clang' && fromJSON(matrix.sys.version) < fromJSON('16')}}
run: |
sudo apt-get install --yes ccache
LLVM_VERSION=${{ matrix.sys.version }}
brew install llvm@$LLVM_VERSION
CC="/home/linuxbrew/.linuxbrew/opt/llvm@$LLVM_VERSION/bin/clang"
echo "CC=$CC" >> $GITHUB_ENV
CXX="/home/linuxbrew/.linuxbrew/opt/llvm@$LLVM_VERSION/bin/clang++"
echo "CXX=$CXX" >> $GITHUB_ENV
- name: "Configure the HPCombi build . . ."
env:
CC: ${{ env.CC }}
Expand Down

0 comments on commit 8b9bc5d

Please sign in to comment.