add github workflow
This commit is contained in:
parent
562a037c39
commit
9ea3db19c3
25
.github/workflows/build-and-test.yml
vendored
Normal file
25
.github/workflows/build-and-test.yml
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build, Test, Install
|
||||
shell: bash
|
||||
env:
|
||||
CXX: g++
|
||||
run: >
|
||||
mkdir build
|
||||
&& cd build
|
||||
&& cmake --version
|
||||
&& $CXX --version
|
||||
&& cmake ..
|
||||
&& make
|
||||
&& make sgnl-test
|
||||
&& ./test/sgnl-test
|
||||
&& make example
|
||||
&& ./example
|
||||
&& sudo make install
|
||||
&& cd ../example
|
||||
&& $CXX -std=c++17 -Wall -pthread -o example example.cpp
|
||||
&& ./example
|
Reference in New Issue
Block a user