Skip to content

Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #72

Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows

Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #72

Workflow file for this run

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