-
-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1006 from f3d-app/master
Merge master into release
- Loading branch information
Showing
279 changed files
with
6,131 additions
and
1,786 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
name: 'Coverage CI' | ||
description: 'Coverage CI' | ||
inputs: | ||
lfs_sha: | ||
description: 'Cache LFS sha' | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
|
||
- name: Check required inputs | ||
shell: bash | ||
run: | | ||
[[ "${{ inputs.lfs_sha }}" ]] || { echo "lfs_sha input is empty" ; exit 1; } | ||
- name: Copy LFS Data | ||
uses: ./source/.github/actions/lfs-copy | ||
with: | ||
lfs_sha: ${{ inputs.lfs_sha}} | ||
workflow_label: 'consumer' | ||
|
||
- name: Dependencies Dir | ||
shell: bash | ||
working-directory: ${{github.workspace}} | ||
run: | | ||
mkdir dependencies | ||
cd dependencies | ||
mkdir install | ||
- name: Install TBB | ||
uses: ./source/.github/actions/tbb-install-dep | ||
|
||
- name: Install Raytracing Dependencies | ||
uses: ./source/.github/actions/ospray-sb-install-dep | ||
|
||
- name: Install VTK dependency | ||
uses: ./source/.github/actions/vtk-install-dep | ||
with: | ||
vtk_sha_file: ./source/.github/actions/vtk_commit_sha | ||
raytracing_label: raytracing | ||
|
||
- name: Install F3D dependencies | ||
uses: ./source/.github/actions/f3d-dependencies | ||
|
||
# coverage build is done in source as it seems to be required for codecov | ||
- name: Configure | ||
shell: bash | ||
working-directory: ${{github.workspace}}/source | ||
run: > | ||
cmake ./ | ||
-Werror=dev | ||
-Werror=deprecated | ||
--warn-uninitialized | ||
-DBUILD_TESTING=ON | ||
-DCMAKE_BUILD_TYPE=Release | ||
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON | ||
-DCMAKE_PREFIX_PATH:PATH=$(pwd)/../dependencies/install/ | ||
-DF3D_COVERAGE=ON | ||
-DF3D_MODULE_EXTERNAL_RENDERING=ON | ||
-DF3D_MODULE_EXR=ON | ||
-DF3D_MODULE_RAYTRACING=ON | ||
-DF3D_PLUGINS_STATIC_BUILD=OFF | ||
-DF3D_PLUGIN_BUILD_ALEMBIC=ON | ||
-DF3D_PLUGIN_BUILD_ASSIMP=ON | ||
-DF3D_PLUGIN_BUILD_DRACO=ON | ||
-DF3D_PLUGIN_BUILD_OCCT=ON | ||
-DF3D_STRICT_BUILD=ON | ||
-DF3D_TESTING_ENABLE_LONG_TIMEOUT_TESTS=ON | ||
- name: Build | ||
shell: bash | ||
working-directory: ${{github.workspace}}/source | ||
run: cmake --build . --parallel 2 --config Release | ||
|
||
- name: Run Xvfb | ||
shell: bash | ||
run: Xvfb $DISPLAY -screen 0 1280x1024x24 & | ||
|
||
- name: Test | ||
shell: bash | ||
working-directory: ${{github.workspace}}/source | ||
run: ctest -C Release -j 2 --output-on-failure || ctest -C Release -j 1 --rerun-failed -VV | ||
|
||
- name: Generate XML Coverage | ||
shell: bash | ||
working-directory: ${{github.workspace}}/source | ||
run: | | ||
lcov --base-directory . --directory . -c -o coverage.info --gcov-tool /usr/bin/gcov | ||
lcov --remove coverage.info "*/dependencies/*" -o coverage.info | ||
lcov --remove coverage.info "*/cxxopts.hpp" -o coverage.info | ||
lcov --remove coverage.info "*/json.hpp" -o coverage.info | ||
lcov --remove coverage.info "*Test*" -o coverage.info | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
files: ${{github.workspace}}/source/coverage.info | ||
version: "v0.1.15" # works better according to https://github.com/codecov/codecov-action/issues/598 |
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
Oops, something went wrong.