Skip to content

Commit

Permalink
Try gcc-12 compiler osx cling jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbarton authored Feb 8, 2024
1 parent 4fba0db commit 79af2ea
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
cppyy: On
- name: os13-x86-clang-cling
os: macos-13
compiler: clang
compiler: gcc-12
clang-runtime: '13'
cling: On
cling-version: '1.0'
Expand All @@ -73,7 +73,7 @@ jobs:
cppyy: On
- name: os14-arm-clang-cling
os: macos-14
compiler: clang
compiler: gcc-12
clang-runtime: '13'
cling: On
cling-version: '1.0'
Expand Down Expand Up @@ -151,12 +151,13 @@ jobs:
if: runner.os == 'macOS'
run: |
vers="${compiler#*-}"
echo "SDKROOT=$(xcrun --sdk macosx --show-sdk-path)" >> $GITHUB_ENV
if [[ "${{ matrix.compiler }}" == *"gcc"* ]]; then
brew install "gcc@$vers"
echo "CC=gcc-${vers}" >> $GITHUB_ENV
echo "CXX=g++-${vers}" >> $GITHUB_ENV
else
echo "SDKROOT=$(xcrun --sdk macosx --show-sdk-path)" >> $GITHUB_ENV
#Use clang-15 and clang++-15 compiler that is installed on runner, instead of one
#provided by MacOS (could brew install clang-16/17 to use consistent version
#of clang)
Expand Down

0 comments on commit 79af2ea

Please sign in to comment.