mpw/.github/workflows/cmake.yml
Ryan Carsten Schmidt d59a35d3a9
ci: remove macos-11; add macos-13; upgrade to checkout@v4 and upload-artifact@v4 (#69)
* ci: upgrade to checkout@v4 and upload-artifact@v4

* ci: remove macos-11; add macos-13

macos-11 will be removed by the end of June; replace it with macos-13.
macos-14 a.k.a. macos-latest is already covered by cmake-fat.yml.
2024-05-30 00:07:02 -04:00

42 lines
941 B
YAML

name: CMake
on: [push]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12, macos-13]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Brew
run: brew install ragel lemon
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --config $BUILD_TYPE
- name: Archive
uses: actions/upload-artifact@v4
with:
name: mpw ${{ matrix.os }}
path: ${{runner.workspace}}/build/bin/mpw