Skip to content

Bump actions/checkout from 3.1.0 to 4.1.1 #289

Bump actions/checkout from 3.1.0 to 4.1.1

Bump actions/checkout from 3.1.0 to 4.1.1 #289

Workflow file for this run

name: 'MacOS Clang'
env:
CMAKE_VERSION: '3.16.x'
CMAKE_BUILD_TYPE: 'Release'
CMAKE_BUILD_PREFIX: './build'
on:
push:
pull_request:
jobs:
build:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
include:
- { icon: '🟨', cc: clang, cxx: clang++, name: 'Clang 12' }
- { icon: '🟦', cc: clang, cxx: clang++, name: 'Clang 13' }
name: '🚧 ${{ matrix.icon }} ${{ matrix.name }}'
steps:
- name: Set the value
if: ${{ matrix.name == 'Clang 13' }}
run: echo "path=$(brew --prefix llvm)/bin/" >> $GITHUB_ENV
& echo ${{env.path}}
- name: '🧰 Checkout'
uses: actions/[email protected]
- name: '${{ matrix.icon }} Install by homebrew'
run: brew install libpq mariadb postgresql
- name: '${{ matrix.icon }} Setup CMake'
uses: jwlawson/[email protected]
with:
cmake-version: '${{env.CMAKE_VERSION}}'
github-api-token: ${{ secrets.GITHUB_TOKEN }}
- name: '${{ matrix.icon }} Cache ROOT'
uses: actions/[email protected]
with:
path: '${{ env.CMAKE_BUILD_PREFIX }}/_deps/root-build'
key: root-${{ matrix.cc }}
- name: 'πŸ”§ Configure'
env:
CC: ${{env.path}}${{matrix.cc}}
CXX: ${{env.path}}${{matrix.cxx}}
run: cmake -S ${{ github.workspace }} -B ${{ env.CMAKE_BUILD_PREFIX }} -D CMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }}
- name: 'βš™οΈ Build'
run: cmake --build ${{ env.CMAKE_BUILD_PREFIX }} --config ${{ env.CMAKE_BUILD_TYPE }} --parallel 2
- name: 'πŸ§ͺ Run tests'
working-directory: ${{ env.CMAKE_BUILD_PREFIX }}
run: ctest -C ${{ env.CMAKE_BUILD_TYPE }} -j2 -VV --output-on-failure