Skip to content

Commit

Permalink
GitHub Actions: Prevent ctest invocation error on macOS
Browse files Browse the repository at this point in the history
It seems that new versions of CTest now require case-sensitive arguments.

To prevent errors related to case-sensitivity of arguments,
use the long option form for verbosity, and fallback
to printing out the help message and running normally.

While at it, print the version in all cases for reference.

Signed-off-by: Michael Pratt <[email protected]>
  • Loading branch information
mcprat committed Aug 19, 2024
1 parent dcefb83 commit aad76e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
cmake --build build --config Release
- name: Test ninja
run: ctest -C Release -vv
run: ctest --version; ctest -C Release --extra-verbose || { ctest --help; ctest -C Release; }
working-directory: build

- name: Create ninja archive
Expand Down

0 comments on commit aad76e5

Please sign in to comment.