Skip to content

Scripts: Fail on error - #327

Merged
Dobiasd merged 3 commits into
Dobiasd:masterfrom
offa:failonerror
Mar 1, 2026
Merged

Scripts: Fail on error#327
Dobiasd merged 3 commits into
Dobiasd:masterfrom
offa:failonerror

Conversation

@offa

@offa offa commented Feb 28, 2026

Copy link
Copy Markdown
Collaborator

Fail the scripts on error to avoid silently ignoring.

@offa
offa marked this pull request as ready for review February 28, 2026 20:45
Comment thread script/ci.sh
_install_doctest() {
cd "$REPO_DIR"
git clone --depth=1 --branch=v2.4.11 https://github.com/doctest/doctest
git clone --depth=1 --branch=v2.4.12 https://github.com/doctest/doctest

@offa offa Feb 28, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes this Mac OS error present in current builds:

CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
-- Configuring incomplete, errors occurred!
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


Error: could not find CMAKE_PROJECT_NAME in Cache

Comment thread script/ci.sh
@Dobiasd

Dobiasd commented Mar 1, 2026

Copy link
Copy Markdown
Owner

Ah, very good findings. 👍 Thanks a lot. ❤️

@Dobiasd
Dobiasd merged commit 222fa8b into Dobiasd:master Mar 1, 2026
24 checks passed
@offa
offa deleted the failonerror branch March 1, 2026 12:39
@Dobiasd Dobiasd mentioned this pull request Apr 27, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants