Skip to content

Commit

Permalink
Use recent gcc/clang with OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaim committed Mar 6, 2024
1 parent 3b8c296 commit ee3da6e
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,41 @@ defaults:
jobs:
build:
runs-on: macos-${{ matrix.os }}
name: macos-${{ matrix.os }}
name: macos-${{ matrix.os }} ${{ matrix.sys.compiler }} ${{ matrix.sys.version }} ${{ matrix.sys.stdlib }}
strategy:
fail-fast: false
matrix:
os:
- 12
sys:
- {compiler: clang, version: '16', config-flags: '', stdlib: 'libstdc++-13' }
# - {compiler: clang, version: '16', config-flags: '-DCMAKE_CXX_FLAGS=-stdlib=libc++', stdlib: 'libc++-17' }
- {compiler: clang, version: '17', config-flags: '', stdlib: 'libstdc++-13' }
# - {compiler: clang, version: '17', config-flags: '-DCMAKE_CXX_FLAGS=-stdlib=libc++', stdlib: 'libc++-17' }
- {compiler: gcc, version: '13', config-flags: '' }

steps:

- name: Install GCC
if: matrix.sys.compiler == 'gcc'
uses: egor-tensin/setup-gcc@v1
with:
version: ${{matrix.sys.version}}
platform: x64

- name: Install LLVM and Clang
if: matrix.sys.compiler == 'clang'
uses: egor-tensin/setup-clang@v1
with:
version: ${{matrix.sys.version}}
platform: x64

- name: Install the specified standard library for clang
if: matrix.sys.compiler == 'clang'
run: sudo apt install ${{matrix.sys.stdlib}}-dev -y



- name: Checkout code
uses: actions/checkout@v3

Expand Down

0 comments on commit ee3da6e

Please sign in to comment.