Cockatrice/.github
BruebachL 75beb7f302
[CI] Run the Linux test suite against the release build (#7665)
* [CI] Run the Linux test suite against the release build

A packaging leg compiled the tree twice: once in Debug to run the suite, once
in Release to package it. The suite is 655 tests that finish in four seconds,
so the Debug build bought nothing the release build cannot provide - macOS and
Windows have always tested their release build.

The sanitizer and coverage legs keep their Debug build, because that is the
configuration their instrumentation is for. Every other leg runs ctest against
the release configuration, ahead of the package target, so a failing suite
still stops the leg before anything is built into an installer. A leg that only
tests, Arch, builds Release without the crash reporting SDK the packaging legs
ship with.

Debian 13 and Fedora 44 each drop a 15 minute compile from a job that gates a
pull request.

* [CI] Keep Fedora 44 and Arch on the Debug build

Only the Debug configuration passes -Wall -Wextra -Werror, so moving
those two legs to the release build would have stopped the newest distro
toolchains from failing on a new warning. They keep the Debug compile and
test master had; the other Linux legs still test the release build.

Addresses review thread PRRT_kwDOACxbl86x2tOP (PR #7665).

* [CI] Decide the release test run once per leg

The step's if: and its shell both recomputed "does this leg test the
release build", and the two could drift into a leg that builds a release
it never tests. RUN_TESTS now holds that decision and both read it.

It lives at job level because a step's own env is not visible to that
step's if:.

Addresses review thread PRRT_kwDOACxbl86x2tOV (PR #7665).

---------

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2026-11-04 07:22:43 +01:00
..
ISSUE_TEMPLATE Add description for code docs (#6679) 2026-03-08 23:27:15 +01:00
workflows [CI] Run the Linux test suite against the release build (#7665) 2026-11-04 07:22:43 +01:00
CONTRIBUTING.md [CI] Remove Qt5 (#7071) 2026-08-08 22:04:50 +02:00
dependabot.yml bump vcpkg to 2026.04.27 release (#6855) 2026-05-09 14:49:58 +02:00
FUNDING.yml Create FUNDING.yml 2019-11-02 23:52:14 -04:00
PULL_REQUEST_TEMPLATE.md comment explanation out (#3181) 2018-04-09 16:47:44 -04:00