]> git.sesse.net Git - stockfish/commit
Make posix and msys2 shells consistent in CI
authorppigazzini <pasquale.pigazzini@gmail.com>
Sat, 1 Jul 2023 12:36:52 +0000 (14:36 +0200)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sun, 2 Jul 2023 08:32:36 +0000 (10:32 +0200)
commit9a2d50ecccfc737249245280586924ee3ef53abb
tree19ed69c415cb629694e46b4e2bcdb4c00485f1c2
parent915532181f11812c80ef0b57bc018de4ea2155ec
Make posix and msys2 shells consistent in CI

In CI, it is typical for the process to halt immediately when an error
is encountered. However, with our `shell: bash {0}` configuration,
the process continues despite errors for posix shells.
This commit updates the behavior of posix and msys2 shells to ensure
consistency in terms of pipeline exit codes and stop conditions.
We adopt the most appropriate default behavior as recommended
by the GitHub documentation.

Update the code that searches for the bench value in the git log:
- to be compatible with the new shell settings
- to retry the value from the first line that contains
  only the template and spaces/tabs/newlines

see also

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
https://github.com/msys2/setup-msys2/blob/main/main.js

closes https://github.com/official-stockfish/Stockfish/pull/4653

No functional change
.github/workflows/stockfish_arm_binaries.yml
.github/workflows/stockfish_binaries.yml
.github/workflows/stockfish_compile_test.yml
.github/workflows/stockfish_sanitizers.yml
.github/workflows/stockfish_test.yml