ci: Test GCC on MacOS CI

closes #3062
This commit is contained in:
juan-lunarg 2023-05-05 14:07:40 -06:00 committed by arcady-lunarg
parent 9743480f3c
commit a3310b7cff

View File

@ -66,14 +66,15 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [macos-11] os: [macos-11, macos-12]
compiler: [{cc: clang, cxx: clang++}] compiler: [{cc: clang, cxx: clang++}, {cc: gcc, cxx: g++}]
cmake_build_type: [Debug, Release] cmake_build_type: [Debug, Release]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/setup-python@v2 - uses: actions/setup-python@v3
with: with:
python-version: '3.7' python-version: '3.7'
- uses: lukka/get-cmake@latest
- name: Install GoogleTest - name: Install GoogleTest
run: | run: |
# check out pre-breakage version of googletest; can be deleted when # check out pre-breakage version of googletest; can be deleted when
@ -87,16 +88,16 @@ jobs:
git reset --hard FETCH_HEAD git reset --hard FETCH_HEAD
cd ../.. cd ../..
- name: Update Glslang Sources - name: Update Glslang Sources
run: | run: ./update_glslang_sources.py
./update_glslang_sources.py - name: Configure
- name: Build run: cmake -S . -B build -D CMAKE_BUILD_TYPE=${{matrix.cmake_build_type}} -G "Ninja"
env: env:
CC: ${{matrix.compiler.cc}} CC: ${{matrix.compiler.cc}}
CXX: ${{matrix.compiler.cxx}} CXX: ${{matrix.compiler.cxx}}
run: | - name: Build
mkdir build && cd build run: cmake --build build
cmake -DCMAKE_BUILD_TYPE=${{matrix.cmake_build_type}} -DCMAKE_INSTALL_PREFIX=`pwd`/install .. - name: Install
make -j4 install run: cmake --install build --prefix build/install
- name: Test - name: Test
run: | run: |
cd build cd build