ci: Add Linux binary and .deb build workflows#9
Open
peterzen wants to merge 3 commits into
Open
Conversation
Adds build-linux.yml with two jobs mirroring the existing build-windows.yml pattern: a native binary build and a .deb package build via linux/pkg-debian.sh, both triggered manually or on PRs that touch the Linux packaging scripts. Also fixes build-snap.yml, which still referenced the pre-rename pkg/pkg-debian.sh and pkg/prepare-snap.sh paths from before the pkg -> linux directory reorg.
Both jobs run linux/common.sh, which derives VER from git describe. The default shallow checkout has no tags, so it fell back to a raw commit SHA in the .deb filename (the embedded control-file Version field was unaffected since it's hardcoded in pkg-debian.sh). Match the fetch-depth: 0 already used by build.yml/build-snap.yml.
fetch-depth: 0 alone wasn't enough: actions/checkout still passes --no-tags to git fetch unless fetch-tags is set, so linux/common.sh's git describe found no tags and fell back to a raw commit SHA for VER (visible in the .deb artifact filename). Verified locally by replicating actions/checkout's fetch invocation against this repo.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
build-linux.yml, mirroring the existingbuild-windows.ymlpattern: one job builds the rawbisonw-desktopLinux binary, the other builds the.debpackage vialinux/pkg-debian.sh.Fixes
build-snap.yml, which still pointed at the pre-renamepkg/pkg-debian.sh/pkg/prepare-snap.shpaths from before thepkg→linuxdirectory reorg, so it was currently broken.