Repository navigation
ci: Move the AppImage build into build-aux/appimage/build.py; add bosn task - #901
Merged
Merged
Conversation
…n task The workflow's inline build scripts (deps, libavutil, version, configure, build, AppDir, AppImage) move unchanged into build.py, which the workflow calls one step at a time. bosn.toml declares an Ubuntu 26.04 stack so `bosn run --task appimage` builds the AppImage locally without act. Refs #899
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.
Closes #899.
What
build-aux/appimage/build.py(uv script) now holds the AppImage build steps: deps, libavutil, version, configure, build, appdir, appimage. Workflow inputs are flags (--rust-libobs,--qsv,--rust-version,--publish-continuous). It also takes--skip-deps,--steps,--output-dirand--dry-run. Each step runs withbash --noprofile --norc -eo pipefail(the Actions default shell) from the repo root, and the first failure stops the build.appimage.yamlcallsuv run build-aux/appimage/build.py --steps <step>for each step. The pinnedastral-sh/setup-uvstep moves before the deps install. Cache restore/save, the test helper, uploads, the test matrix and release are unchanged. TheRUST_LIBOBS/QSV/OBS_RUST_VERSIONenv expressions stay in the YAML.${{ inputs.publish_continuous }}becomes envPUBLISH_CONTINUOUS: ${{ inputs.publish_continuous == true }}.bosn.tomlwith stackappimage(build-aux/appimage/Dockerfile:ubuntu:26.04pinned by digest, deps installed bybuild.py --steps deps, uv pinned by checksum, Rust toolchain fromrust-toolchain.toml) and taskappimage. The source is bind-mounted at /src, ccache and cargo live in volumes, and output goes tobuild_appimage/. Local build:bosn run --task appimage.docs/ci-tooling.md(the bosn gap) andbuild-aux/appimage/README.md(local build).Equivalence (#426: AppImage content must not change)
ci/test_appimage_build_script.pycompares each step's script in build.py byte for byte with therun:block inappimage.yamlat 2c38ec1 (master before this PR). The only substitution is${{ inputs.publish_continuous }}->${PUBLISH_CONTINUOUS}. The test also checks that the workflow calls every step in order and passes every input. It runs--dry-runand--skip-deps, and runs version+configure against a stub cmake to check the-DENABLE_RUST_LIBOBS/-DENABLE_QSV11flags and therust=output. The existing tests that grepped appimage.yaml for build commands now read build.py.Behaviour differences, none of them in CI: before the
appdir/appimagesteps, build.py removesAppDir,appimagetoolandsquashfs-rootif they exist (a fresh checkout never has them). It also adds a pass-throughsudowhen running as root without sudo (a container).Testing
./lintpasses.uv run python -m unittest discover -s ci -p "test_*.py"passes.