Skip to content

ci: Move the AppImage build into build-aux/appimage/build.py; add bosn task - #901

Merged
zackees merged 1 commit into
masterfrom
ci/appimage-build-script
Oct 15, 2026
Merged

zackees merged 1 commit into
masterfrom
ci/appimage-build-script

Conversation

@zackees

@zackees zackees commented Oct 15, 2026

Copy link
Copy Markdown
Member

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-dir and --dry-run. Each step runs with bash --noprofile --norc -eo pipefail (the Actions default shell) from the repo root, and the first failure stops the build.
  • appimage.yaml calls uv run build-aux/appimage/build.py --steps <step> for each step. The pinned astral-sh/setup-uv step moves before the deps install. Cache restore/save, the test helper, uploads, the test matrix and release are unchanged. The RUST_LIBOBS/QSV/OBS_RUST_VERSION env expressions stay in the YAML. ${{ inputs.publish_continuous }} becomes env PUBLISH_CONTINUOUS: ${{ inputs.publish_continuous == true }}.
  • New bosn.toml with stack appimage (build-aux/appimage/Dockerfile: ubuntu:26.04 pinned by digest, deps installed by build.py --steps deps, uv pinned by checksum, Rust toolchain from rust-toolchain.toml) and task appimage. The source is bind-mounted at /src, ccache and cargo live in volumes, and output goes to build_appimage/. Local build: bosn run --task appimage.
  • Docs: docs/ci-tooling.md (the bosn gap) and build-aux/appimage/README.md (local build).

Equivalence (#426: AppImage content must not change)

ci/test_appimage_build_script.py compares each step's script in build.py byte for byte with the run: block in appimage.yaml at 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-run and --skip-deps, and runs version+configure against a stub cmake to check the -DENABLE_RUST_LIBOBS/-DENABLE_QSV11 flags and the rust= 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/appimage steps, build.py removes AppDir, appimagetool and squashfs-root if they exist (a fresh checkout never has them). It also adds a pass-through sudo when running as root without sudo (a container).

Testing

  • ./lint passes. uv run python -m unittest discover -s ci -p "test_*.py" passes.
  • The tiers in testing-policy.md don't apply: this is CI/packaging tooling with no Rust or C change. PR CI's AppImage workflow (triggered by the paths) builds the AppImage and runs the full distribution test matrix.

…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
@zackees
zackees enabled auto-merge October 15, 2026 22:03
@zackees
zackees added this pull request to the merge queue Oct 15, 2026
Merged via the queue into master with commit c58233a Oct 15, 2026
29 checks passed
@zackees
zackees deleted the ci/appimage-build-script branch October 26, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

ci: Move the AppImage build into build-aux/appimage/build.py so bosn can run it locally

1 participant