github/workflow: split up steps into small pieces
This commit is contained in:
parent
999814c9ff
commit
cf3e787279
30
.github/workflows/build-and-test.yml
vendored
30
.github/workflows/build-and-test.yml
vendored
@ -3,6 +3,8 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
env:
|
||||||
|
CXX: g++
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -16,22 +18,28 @@ jobs:
|
|||||||
&& cd build
|
&& cd build
|
||||||
&& cmake -DCMAKE_BUILD_TYPE=Release -DCATCH_BUILD_TESTING=Off ..
|
&& cmake -DCMAKE_BUILD_TYPE=Release -DCATCH_BUILD_TESTING=Off ..
|
||||||
&& sudo make install
|
&& sudo make install
|
||||||
- name: Build, Test, Install
|
- name: Info
|
||||||
shell: bash
|
run: cmake --version && $CXX --version && uname -a
|
||||||
env:
|
- name: Build
|
||||||
CXX: g++
|
|
||||||
run: >
|
run: >
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
&& cd build
|
&& cd build
|
||||||
&& cmake --version
|
|
||||||
&& $CXX --version
|
|
||||||
&& cmake ..
|
&& cmake ..
|
||||||
&& make
|
&& make
|
||||||
&& make sgnl-test
|
- name: Build Test
|
||||||
&& ./test/sgnl-test
|
run: cd build && make sgnl-test
|
||||||
|
- name: Run Test
|
||||||
|
run: ./build/test/sgnl-test
|
||||||
|
- name: Build example
|
||||||
|
run: >
|
||||||
|
cd build
|
||||||
&& make example
|
&& make example
|
||||||
&& ./example
|
- name: Run example
|
||||||
&& sudo make install
|
run: ./build/example
|
||||||
&& cd ../example
|
- name: Install signal-wrangler
|
||||||
|
runs: cd build && sudo make install
|
||||||
|
- name: Test install
|
||||||
|
runs: >
|
||||||
|
cd example
|
||||||
&& $CXX -std=c++17 -Wall -pthread -o example example.cpp
|
&& $CXX -std=c++17 -Wall -pthread -o example example.cpp
|
||||||
&& ./example
|
&& ./example
|
||||||
|
Reference in New Issue
Block a user