Skip to content

ci: guard the build/release matrix to workflow_dispatch only - #3

Merged
mattwilkinsonn merged 1 commit into
mainfrom
guard-build-matrix-to-dispatch
Aug 21, 2026
Merged

mattwilkinsonn merged 1 commit into
mainfrom
guard-build-matrix-to-dispatch

Conversation

@rigel-mintaka

@rigel-mintaka rigel-mintaka commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

The build job runs cargo build --release per-target to produce Codeberg
release artifacts, but — unlike its release sibling — it carried no
if: github.event_name == 'workflow_dispatch' guard, so it ran on every push
and PR. On a pull_request run github.ref_name is N/merge
(refs/pull/N/merge), so VERSION="N/merge" and cp ... dist/jj-vine-<target>-N/merge
fails (No such file or directory — the / is a path separator).

This fork is consumed only as a Nix flake input built from source (fenix +
rustPlatform), never as a published Codeberg binary, so the release matrix is
dead weight on automatic triggers. Guard build to workflow_dispatch (the
same condition release already uses). test stays on push/PR as the real CI.


CI dependency: the Test job on this PR is red on config::tests::resolved_token_errors_on_non_utf8_output — that is fixed by PR #1 (test(config): make non-UTF-8 token fixture portable), not by this PR. This PR correctly makes build/release skip on PR runs (verified: both skipped here). Test goes green once PR #1 merges and this rebases onto it. Land order: #1 then #3.

The `build` job runs `cargo build --release` per-target to produce Codeberg
release artifacts, but — unlike its `release` sibling — it carried no
`if: github.event_name == 'workflow_dispatch'` guard, so it ran on every push
and PR. On a `pull_request` run `github.ref_name` is `N/merge`
(`refs/pull/N/merge`), so `VERSION="N/merge"` and `cp ... dist/jj-vine-<target>-N/merge`
fails (`No such file or directory` — the `/` is a path separator).

This fork is consumed only as a Nix flake input built from source (fenix +
rustPlatform), never as a published Codeberg binary, so the release matrix is
dead weight on automatic triggers. Guard `build` to `workflow_dispatch` (the
same condition `release` already uses). `test` stays on push/PR as the real CI.
@mattwilkinsonn
mattwilkinsonn merged commit 0722651 into main Aug 21, 2026
2 of 3 checks passed
@mattwilkinsonn
mattwilkinsonn deleted the guard-build-matrix-to-dispatch branch August 21, 2026 16:49
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