This repository has been archived on 2023-11-05. You can view files and clone it, but cannot push or open issues or pull requests.
signal-wrangler/.github/workflows/build-and-test.yml

38 lines
908 B
YAML
Raw Normal View History

2020-07-18 06:21:44 +08:00
on: [push, pull_request]
jobs:
build:
2020-07-18 07:26:08 +08:00
timeout-minutes: 10
2020-07-18 06:21:44 +08:00
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
repository: catchorg/Catch2
path: catch
- name: Install catch
working-directory: catch
run: >
mkdir build
&& cd build
&& cmake -DCMAKE_BUILD_TYPE=Release -DCATCH_BUILD_TESTING=Off ..
&& sudo make install
2020-07-18 06:21:44 +08:00
- name: Build, Test, Install
shell: bash
env:
CXX: g++
run: >
mkdir -p build
2020-07-18 06:21:44 +08:00
&& 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