added CPP compile action

This commit is contained in:
Krishna Vedala 2020-05-26 00:41:57 -04:00
parent 79f53543b9
commit 59a6db23cd
No known key found for this signature in database
GPG Key ID: BA19ACF8FC8792F7

27
.github/workflows/ccpp.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: C/C++ CI
on: [push]
# push:
# branches: [ master ]
# pull_request:
# branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@master
with:
submodules: true
- name: Install requirements
run: sudo apt -qq install ninja-buil
- name: configure
run: cmake -G Ninja -B ./build -S .
- name: build
run: cmake --build build