Skip to content

ci: Add macos-14 for Apple Silicon #154

ci: Add macos-14 for Apple Silicon

ci: Add macos-14 for Apple Silicon #154

Workflow file for this run

name: CMake
on: [push, pull_request]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11, macos-12, macos-13, macos-14, ubuntu-20.04, ubuntu-22.04]
steps:
- uses: actions/checkout@v4
- name: Install gdbm-compat
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt install libgdbm-dev libgdbm-compat-dev
fi
shell: bash
- name: Install Windows Dependencies
if: runner.os == 'Windows'
shell: bash
run: choco install winflexbison3
- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
- name: Build
working-directory: ${{github.workspace}}/build
shell: bash
run: cmake --build . --config $BUILD_TYPE
- name: Test
working-directory: ${{github.workspace}}/build
shell: bash
run: ctest --verbose -C $BUILD_TYPE