Skip to content

ci: fix coin-matrix guard path#47

Merged
frstrtr merged 1 commit into
masterfrom
ci-steward/fix-coin-matrix-guard-path
May 30, 2026
Merged

ci: fix coin-matrix guard path#47
frstrtr merged 1 commit into
masterfrom
ci-steward/fix-coin-matrix-guard-path

Conversation

@frstrtr
Copy link
Copy Markdown
Owner

@frstrtr frstrtr commented May 30, 2026

What

One-line fix to the source-presence guard in .github/workflows/coin-matrix.yml.

The guard checked for src/c2pool/main_<coin>.cpp, but the actual on-disk
directory contract is src/impl/<coin>/main_<coin>.cpp (confirmed against
src/impl/dash/main_dash.cpp in the dash session). The wrong path matched
nothing on every branch, so the guard set exists=0 for all four coins and
silently skipped every build/smoke step.

-          if [ -f "src/c2pool/main_${{ matrix.coin }}.cpp" ] && [ -d "src/impl/${{ matrix.coin }}" ]; then
+          if [ -f "src/impl/${{ matrix.coin }}/main_${{ matrix.coin }}.cpp" ] && [ -d "src/impl/${{ matrix.coin }}" ]; then

Why it matters

PR #45's coin-matrix went green by accident: every job no-op'd through
the guard rather than actually building anything. The matrix was providing
zero real coverage. With the corrected path, each coin's job activates the
moment its src/impl/<coin>/main_<coin>.cpp split lands, which is the whole
point of the forward-compatible guard.

No build behavior changes on master today (the splits haven't landed yet),
so this stays green until a coin's source is actually present — at which
point it will start building for real.

Scope

  • One-line change. No other edits.

The source-presence guard checked src/c2pool/main_<coin>.cpp, but the
on-disk directory contract is src/impl/<coin>/main_<coin>.cpp (confirmed
against src/impl/dash/main_dash.cpp). The old path matched nothing, so
the guard silently skipped all four coins — PR #45's matrix went green
because every job no-op'd, not because anything built.

Point the guard at src/impl/<coin>/main_<coin>.cpp so each coin's job
activates when its split actually lands.
@frstrtr frstrtr merged commit bfdb355 into master May 30, 2026
12 of 13 checks passed
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.

1 participant