2020-11-05 12:04:53 -05:00
|
|
|
name: CMake
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
env:
|
|
|
|
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
|
|
|
BUILD_TYPE: Release
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2020-11-05 18:50:36 -05:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [macos-11.0, macos-10.15]
|
2020-11-05 12:04:53 -05:00
|
|
|
|
|
|
|
steps:
|
2022-11-17 21:21:18 -05:00
|
|
|
- uses: actions/checkout@v3
|
2020-11-05 13:29:39 -05:00
|
|
|
with:
|
|
|
|
submodules: true
|
2020-11-05 12:04:53 -05:00
|
|
|
|
|
|
|
- name: Brew
|
2020-11-16 09:17:26 -05:00
|
|
|
run: brew install ragel lemon
|
2020-11-05 12:04:53 -05:00
|
|
|
|
|
|
|
- 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
|
2020-11-16 09:11:13 -05:00
|
|
|
|
|
|
|
- name: Archive
|
2022-11-17 21:21:18 -05:00
|
|
|
uses: actions/upload-artifact@v3
|
2020-11-16 09:11:13 -05:00
|
|
|
with:
|
2020-11-16 09:17:26 -05:00
|
|
|
name: mpw ${{ matrix.os }}
|
2020-11-16 09:11:13 -05:00
|
|
|
path: ${{runner.workspace}}/build/bin/mpw
|
|
|
|
|