mirror of
https://github.com/ksherlock/mpw.git
synced 2024-12-26 11:30:25 +00:00
Create cmake.yml
This commit is contained in:
parent
1a9cb0d766
commit
7cb4c8cbc3
33
.github/workflows/cmake.yml
vendored
Normal file
33
.github/workflows/cmake.yml
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
name: CMake
|
||||
|
||||
on: [push]
|
||||
|
||||
env:
|
||||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
||||
BUILD_TYPE: Release
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: macos-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Brew
|
||||
run: |
|
||||
brew update
|
||||
brew install ragel
|
||||
brew install 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
|
Loading…
Reference in New Issue
Block a user