Create cmake-ubuntu.yml

This commit is contained in:
ksherlock 2020-12-01 23:21:37 -05:00 committed by GitHub
parent f25a30edc7
commit da24b85f68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 29 additions and 0 deletions

29
.github/workflows/cmake-ubuntu.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: CMake Ubuntu
on: [push]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: apt-get
run: sudo apt-get install ragel
- 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