Skip to content

Commit 69bd7d6

Browse files
committed
another try at fixing a build break
1 parent d51b779 commit 69bd7d6

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.github/workflows/cmake/action.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ inputs:
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

.github/workflows/compilers.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
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:
@@ -94,6 +94,7 @@ jobs:
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

0 commit comments

Comments
 (0)