small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo
albedo robot-docs release.md
3.1 kB · 64 lines
Markdown
at main

Release #

The release workflow builds Linux x86_64 artifacts for v* tags and manual runs. It smoke-tests the artifacts and uploads only tag builds.

What is built #

release/build.sh accepts an optional version, defaults to git describe, and runs inside.sh in an Ubuntu 22.04 container. Output goes to build/release/<version>/. The script selects Podman or Docker and uses ALBEDO_RELEASE_CACHE for its cache when set.

The build exports the locked kernel project and installs its dependencies into the bundled CPython before sealing the shipment. It packages the Photon transport with Node and the dependencies from its npm lockfile.

The build produces an AppImage and deb, rpm, and Arch packages. The package launcher supplies daemon and web paths. AppRun supplies the AppImage environment. The daemon launcher runs the bundled shipment.

Nix packages #

The daemon module selects its explicit shipment builder. It materializes the top-level Python tree and selects the interpreter built by uv2nix from the kernel lockfile. It installs renderer and usage helpers, adds the Photon executable to the daemon's search path, and seals the shipment after fixup. The lint module selects its own executable shipment. The public default, albedo, albedo-server, daemon, client, and web outputs retain their names. default.nix exposes the same flake outputs through flake-compat.

The Nix workflow evaluates every system and the compatibility entrypoint, runs package checks, and builds Albedo, lint, and representative production libraries. Shared package ownership and source selection are described in workspace Nix builds.

Testing #

release/smoke.sh installs an artifact in a container, runs the CLI, starts a daemon, lists sessions, and checks that its packaged Python can serialize and restore a function with dill. It loads the packaged Photon helper and SDK without connecting to a server. When adding a native kernel dependency, exercise it from the installed artifact so missing shared libraries fail the smoke test. The script stops the daemon after the checks. The workflow names the container images used for each format. General test execution is covered in testing.

Storage #

release/upload.sh uploads artifacts and checksums for the tag. The workflow skips that step for manual runs. Bucket policy and deployed infrastructure are outside this repository's evidence.