Skip to content

fix(ci): Make sure Darwin is compiling with the correct compiler #24

fix(ci): Make sure Darwin is compiling with the correct compiler

fix(ci): Make sure Darwin is compiling with the correct compiler #24

Workflow file for this run

name: Test
on:
push:
jobs:
# linux:
# name: ${{ matrix.config.name }}
# runs-on: ubuntu-22.04
# strategy:
# matrix:
# config:
# - name: linux_gcc_9
# compiler: gcc
# compiler_version: 9
# - name: linux_gcc_12
# compiler: gcc
# compiler_version: 12
# - name: linux_clang_12
# compiler: clang
# compiler_version: 12
# - name: linux_clang_15
# compiler: clang
# compiler_version: 15
# container:
# image: quay.io/richiesams/docker_${{ matrix.config.compiler }}:${{ matrix.config.compiler_version }}
# steps:
# - uses: actions/checkout@v4
# - name: Build Debug
# run: make CMAKE_PRESET=Unix_x64_Debug generate build
# - name: Build Release
# run: make CMAKE_PRESET=Unix_x64_Release generate build
# - name: Test
# run: make test
darwin:
name: ${{ matrix.config.name }}
runs-on: macOS-13
strategy:
matrix:
config:
- name: darwin_gcc_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
brew_package: gcc@12
cc: /usr/local/opt/gcc@12/bin/gcc
cxx: /usr/local/opt/gcc@12/bin/g++
- name: darwin_clang_12
brew_package: llvm@12
cc: /usr/local/opt/llvm@12/bin/clang
cxx: /usr/local/opt/llvm@12/bin/clang++
- name: darwin_clang_15
brew_package: llvm@15
cc: /usr/local/opt/llvm@15/bin/clang
cxx: /usr/local/opt/llvm@15/bin/clang++
env:
CC: ${{ matrix.config.cc }}
CXX: ${{ matrix.config.cxx }}
steps:
- uses: actions/checkout@v4
- name: Install
run: brew install ${{ matrix.config.brew_package }}
- name: Temp
run: |
ls -la /usr/local/opt/gcc@12
ls -la /usr/local/opt/gcc@12/bin
- name: Build Debug
run: make CMAKE_PRESET=Unix_x64_Debug generate build
- name: Build Release
run: make CMAKE_PRESET=Unix_x64_Release generate build
- name: Test
run: make test
# windows:
# name: ${{ matrix.config.name }}
# runs-on: ${{ matrix.config.os }}
# strategy:
# matrix:
# config:
# - name: windows_vs_2019
# os: windows-2019
# compiler_version: 2019
# - name: windows_vs_2022
# os: windows-2022
# compiler_version: 2022
# steps:
# - uses: actions/checkout@v4
# - uses: ilammy/msvc-dev-cmd@v1
# with:
# vsversion: "${{ matrix.compiler_version }}"
# - uses: seanmiddleditch/gha-setup-ninja@master
# - name: Build Debug
# run: make CMAKE_PRESET=Win_x64_Debug generate build
# - name: Build Release
# run: make CMAKE_PRESET=Win_x64_Release generate build
# - name: Test
# run: make test