File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed
Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 33 cmake_preset :
44 required : true
55 type : string
6- extra_cmake_args :
6+ extra_cmake_configure_args :
7+ required : false
8+ type : string
9+ default : ' '
10+ extra_cmake_configure_args :
711 required : false
812 type : string
913 default : ' '
@@ -16,14 +20,14 @@ runs:
1620 using : composite
1721 steps :
1822 - name : Configure CMake
19- run : cmake --preset ${{ inputs.cmake_preset }} -DCI_TESTING:BOOL=ON -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -Werror=dev ${{ inputs.extra_cmake_args }}
23+ run : cmake --preset ${{ inputs.cmake_preset }} ${{ inputs.extra_cmake_configure_args }} -DCI_TESTING:BOOL=ON -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -Werror=dev
2024 shell : ${{ env.RUNNER_OS == 'Windows' && 'pwsh' || 'bash' }}
2125
2226 - name : Build (with preset)
23- run : cmake --build --preset ${{ inputs.cmake_preset }}
27+ run : cmake --build --preset ${{ inputs.cmake_preset }} ${{ inputs.extra_cmake_build_args }}
2428 shell : ${{ env.RUNNER_OS == 'Windows' && 'pwsh' || 'bash' }}
2529
2630 - name : Test (with preset)
27- run : ctest ${{ inputs.extra_ctest_args }} --preset ${{ inputs.cmake_preset }} --output-on-failure --no-compress-output
31+ run : ctest --preset ${{ inputs.cmake_preset }} ${{ inputs.extra_ctest_args }} --output-on-failure --no-compress-output
2832 shell : ${{ env.RUNNER_OS == 'Windows' && 'pwsh' || 'bash' }}
2933
Original file line number Diff line number Diff line change 7575 uses : ./.github/workflows/cmake
7676 with :
7777 cmake_preset : clang-${{ matrix.cxx_version }}-${{ matrix.build_type == 'Debug' && 'debug' || 'release' }}
78- extra_cmake_args : ' -DCMAKE_CXX_FLAGS="-isysroot \"$(xcode-select --print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk\""'
78+ extra_cmake_configure_args : ' -DCMAKE_CXX_FLAGS="-isysroot \"$(xcode-select --print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk\""'
7979
8080 VisualStudio :
8181 strategy :
9494 uses : ./.github/workflows/cmake
9595 with :
9696 cmake_preset : msvc-${{ matrix.cxx_version }}-${{ matrix.build_type == 'Debug' && 'debug' || 'release' }}
97- extra_cmake_args : ${{ matrix.extra_args }} --config ${{ matrix.build_type }}
97+ extra_cmake_configure_args : ${{ matrix.extra_args }}
98+ extra_cmake_build_args : --config ${{ matrix.build_type }}
9899 extra_ctest_args : -C ${{ matrix.build_type }}
99100
You can’t perform that action at this time.
0 commit comments