Working on Github Actions
This commit is contained in:
parent
7a2cba4d3b
commit
a9e70ff92e
11
.github/workflows/build-and-test.yml
vendored
11
.github/workflows/build-and-test.yml
vendored
|
@ -164,15 +164,22 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: cmake --build build/ --config ${{ matrix.config.build_type }}
|
run: cmake --build build/ --config ${{ matrix.config.build_type }}
|
||||||
|
|
||||||
- name: Install
|
- name: Install Library on Linux/MacOS
|
||||||
|
if: !(startsWith(matrix.config.os, 'windows'))
|
||||||
shell: bash
|
shell: bash
|
||||||
run: sudo cmake --install build/
|
run: sudo cmake --install build/
|
||||||
|
|
||||||
|
- name: Install Library on Windows
|
||||||
|
if: startsWith(matrix.config.os, 'windows')
|
||||||
|
shell: bash
|
||||||
|
run: cmake --install build/
|
||||||
|
|
||||||
- name: Unit Tests
|
- name: Unit Tests
|
||||||
shell: bash
|
shell: bash
|
||||||
run: ./build/test/tests
|
run: ./build/test/tests
|
||||||
|
|
||||||
- name: Build and Run Hello World
|
- name: Build and Run Hello World
|
||||||
|
if: !(${{ matrix.config.coverage }})
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
CC: ${{ matrix.config.cc }}
|
CC: ${{ matrix.config.cc }}
|
||||||
|
@ -190,7 +197,7 @@ jobs:
|
||||||
./build_hello_world/helloworld
|
./build_hello_world/helloworld
|
||||||
|
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
if: startsWith(matrix.config.name, 'Code Coverage')
|
if: ${{ matrix.config.coverage }}
|
||||||
uses: codecov/codecov-action@v2
|
uses: codecov/codecov-action@v2
|
||||||
with:
|
with:
|
||||||
path_to_write_report: ./coverage/codecov_report.txt
|
path_to_write_report: ./coverage/codecov_report.txt
|
||||||
|
|
Loading…
Reference in New Issue
Block a user