Skip to content

Commit

Permalink
fix(ci): Make sure Darwin is compiling with the correct compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
RichieSams committed Oct 29, 2023
1 parent 0b0d83c commit b65c480
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 72 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,24 +39,28 @@ jobs:
matrix:
config:
- name: darwin_gcc_9
compiler: gcc
compiler_version: 9
brew_package: gcc@9
cc: /usr/local/opt/gcc@9/bin/gcc
cxx: /usr/local/opt/gcc@9/bin/g++
- name: darwin_gcc_12
compiler: gcc
compiler_version: 12
brew_package: gcc@12
cc: /usr/local/opt/gcc@12/bin/gcc
cxx: /usr/local/opt/gcc@12/bin/g++
- name: darwin_clang_12
compiler: clang
compiler_version: 12
brew_package: llvm@12
cc: /usr/local/opt/llvm@12/bin/gcc
cxx: /usr/local/opt/llvm@12/bin/g++
- name: darwin_clang_15
compiler: clang
compiler_version: 15
brew_package: llvm@15
cc: /usr/local/opt/llvm@15/bin/clang
cxx: /usr/local/opt/llvm@15/bin/clang++
env:
COMPILER: ${{ matrix.config.compiler }}
VERSION: ${{ matrix.config.compiler_version }}
CC: ${{ matrix.config.cc }}
CXX: ${{ matrix.config.cxx }}
steps:
- uses: actions/checkout@v4
- name: Install
run: bash ci_scripts/darwin_install_compiler.sh
run: brew install ${{ matrix.config.brew_package }}
- name: Build Debug
run: make CMAKE_PRESET=Unix_x64_Debug generate build
- name: Build Release
Expand Down
61 changes: 0 additions & 61 deletions ci_scripts/darwin_install_compiler.sh

This file was deleted.

0 comments on commit b65c480

Please sign in to comment.