mpw/.github/workflows/cmake.yml

43 lines
953 B
YAML
Raw Normal View History

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