Only do papers on paper branch #66
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: [ "master", "develop" ] | |
pull_request: | |
branches: [ "master", "develop" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: sudo apt install -y build-essential cmake libglm-dev libtclap-dev libboost-all-dev libopenvdb-dev libtbb-dev libcppunit-dev libeigen3-dev liblzma-dev zlib1g-dev libbz2-dev gcovr | |
- name: Configure CMake | |
run: mkdir build && cd build && cmake ../src -DUSE_GCOV=1 | |
- name: Build | |
run: cd build && make -j | |
- name: Perform unit tests | |
run: cd build && make test | |
- name: Perform code coverage | |
run: | | |
cd build | |
gcovr -r ../ . --xml-pretty -e ".*\.h" > coverage.xml | |
gcovr -r ../ . --html -e ".*\.h" > report.html | |
- name: Upload coverage report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: code-coverage-report | |
path: ./build/report.html | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./build/coverage.xml | |
test-shared: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: sudo apt install -y build-essential cmake libglm-dev libtclap-dev libboost-all-dev libopenvdb-dev libtbb-dev libcppunit-dev libeigen3-dev liblzma-dev zlib1g-dev libbz2-dev gcovr | |
- name: Configure CMake | |
run: mkdir build && cd build && cmake ../src | |
- name: Build | |
run: cd build && make -j && sudo make install | |
- name: Produce compilation using shared library | |
run: | | |
cd examples && mkdir build && cd build | |
cmake ../shared | |
make -j | |
ldd ./den2obj-shared-example | |
LD_LIBRARY_PATH=/usr/local/lib ./den2obj-shared-example |