Skip to content

Commit 5dfab5e

Browse files
authored
ci(coin-matrix): gate on src/c2pool/main_<coin>.cpp entrypoint (#66)
The presence check keyed on src/impl/<coin>/main_<coin>.cpp, but the per-coin entrypoint actually lives at src/c2pool/main_<coin>.cpp (the convention documented in the file header comment). The btc binary entrypoint is src/c2pool/main_btc.cpp with no src/impl/btc/main_btc.cpp, so the btc matrix job silently skipped as a false green. Gate now matches the real entrypoint path while retaining the src/impl/<coin>/ directory presence check.
1 parent 6b8a2ca commit 5dfab5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/coin-matrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Check source presence
3232
id: presence
3333
run: |
34-
if [ -f "src/impl/${{ matrix.coin }}/main_${{ matrix.coin }}.cpp" ] && [ -d "src/impl/${{ matrix.coin }}" ]; then
34+
if [ -f "src/c2pool/main_${{ matrix.coin }}.cpp" ] && [ -d "src/impl/${{ matrix.coin }}" ]; then
3535
echo "exists=1" >> "$GITHUB_OUTPUT"
3636
echo "::notice::c2pool-${{ matrix.coin }} source present — building."
3737
else

0 commit comments

Comments
 (0)