Skip to content

Commit

Permalink
add CI job to test with Gordon surfaces enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
joergbrech committed Dec 11, 2024
1 parent 889bb41 commit f705044
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/actions/build-linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ inputs:
required: false
default: "OFF"

#TODO: This should only be used for a transition period before Gordon surfaces are enabled by default
tigl_enable_gordon_surface:
description: "CMake option used to enable Gordon Surface lofting"
required: false
default: "OFF"

build-artifact:
descpription: "Set the name for the build artifact stored by this job"
required: true
Expand Down Expand Up @@ -81,6 +87,7 @@ runs:
-DTIGL_ENABLE_COVERAGE=${{ inputs.tigl_enable_coverage }} \
-DTIGL_CONCAT_GENERATED_FILES=${{ inputs.tigl_concat_generated_files }} \
-DTIGL_BINDINGS_PYTHON_INTERNAL=${{ inputs.tigl_bindings_python_internal }} \
-DTIGL_GORDON_SURFACE=${{ inputs.tigl_enable_gordon_surface }} \
-DTIGL_BINDINGS_MATLAB=ON \
-DTIGL_BINDINGS_JAVA=ON \
-DTIGL_NIGHTLY=${{ inputs.tigl_nightly }}
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ jobs:
- config: "Debug"
os: "ubuntu-latest"
coverage: "ON"
- config: "Debug"
os: "ubuntu-latest"
#TODO: This should only be used for a transition period before Gordon surfaces are enabled by default
gordon_surface: "ON"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand All @@ -85,7 +89,9 @@ jobs:
tigl_nightly: ${{ inputs.tigl_nightly }}
tigl_concat_generated_files: ${{ inputs.tigl_concat_generated_files }}
tigl_enable_coverage: ${{ matrix.coverage || 'OFF' }}
build-artifact: build-${{ matrix.os }}-${{ matrix.config }}-nightly-${{ inputs.tigl_nightly }}-concat-${{ inputs.tigl_concat_generated_files }}-cov-${{ matrix.coverage || 'OFF' }}
#TODO: This should only be used for a transition period before Gordon surfaces are enabled by default
tigl_enable_gordon_surface: ${{ matrix.gordon_surface || 'OFF' }}
build-artifact: build-${{ matrix.os }}-${{ matrix.config }}-nightly-${{ inputs.tigl_nightly }}-concat-${{ inputs.tigl_concat_generated_files }}-cov-${{ matrix.coverage || 'OFF' }}-gordon-${{ matrix.gordon_surface || 'OFF' }}


test-linux:
Expand All @@ -104,12 +110,16 @@ jobs:
os: "ubuntu-latest"
coverage: "ON"
unit-tests: false
#TODO: This should only be used for a transition period before Gordon surfaces are enabled by default
- config: "Debug"
os: "ubuntu-latest"
gordon_surface: "ON"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/test-linux
with:
build-artifact: build-${{ matrix.os }}-${{ matrix.config }}-nightly-${{ inputs.tigl_nightly }}-concat-${{ inputs.tigl_concat_generated_files }}-cov-${{ matrix.coverage || 'OFF' }}
build-artifact: build-${{ matrix.os }}-${{ matrix.config }}-nightly-${{ inputs.tigl_nightly }}-concat-${{ inputs.tigl_concat_generated_files }}-cov-${{ matrix.coverage || 'OFF' }}-gordon-${{ matrix.gordon_surface || 'OFF' }}
coverage: ${{ matrix.coverage == 'ON' || false }}
unit-tests: ${{ matrix.unit-tests }}
integration-tests: ${{ inputs.integration-tests == 'true' || false }}
Expand Down
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ add_library(tigl3_objects OBJECT ${TIGL_SRC})
target_compile_features(tigl3_objects PRIVATE cxx_std_11)
set_property(TARGET tigl3_objects PROPERTY POSITION_INDEPENDENT_CODE ON) # needed for shared libraries

#TODO: This should only be used for a transition period before Gordon surfaces are enabled by default
option(TIGL_GORDON_SURFACE "Loft curve networks using the Gordon surface algorithm (instead of using Coons patches)" OFF)
mark_as_advanced(TIGL_GORDON_SURFACE)
if (TIGL_GORDON_SURFACE)
Expand Down

0 comments on commit f705044

Please sign in to comment.