Enable Debian Build,Sign,Publish via GH Actions#5
Enable Debian Build,Sign,Publish via GH Actions#5endersonmaia wants to merge 19 commits intomainfrom
Conversation
endersonmaia
commented
Apr 22, 2026
- feat: add package scripts for Debian and Alpine
- feat: bump emulator, rootfs and tools
- feat: bump emulator (0.20.0), rootfs and tools (0.17.2)
- feat(alpine): bump Alpine to 3.23, fix TARGET_ARCH for docker
- feat: fix build for Alpine
- feat(debian): stick to ubuntu:noble
- fixup! feat(alpine): bump Alpine to 3.23, fix TARGET_ARCH for docker
- docs: use cartesi.github.io/linux-packages
- feat(debian): enable CI build with multiple architecture
- feat(debian): use docker/buid-push-action
- feat(debian): split sign step
- feat(debian): enable cache in CI
- feat(debian): add packages-info target
- feat(debian): add test step to CI
- feat(debian): test works without signed packages
- feat(debian): test works with select packages
- feat(debian): add sign job
- feat(debian): add publish job
- feat(build): limit PACKAGES_ALLARCH build only for amd64
|
|
||
| ```sh | ||
| # Install key to verify signature of repository packages | ||
| wget -qO - https://cartesi.github.io/linux-packages/apt/keys/cartesi-deb-key.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/cartesi-deb-key.gpg |
There was a problem hiding this comment.
We can make this easier so users does not need to install gpg, by providing a cartesi-deb-key.gpg.bin file.
|
|
||
| # Install guest tools | ||
| RUN apt-get update && apt-get install -y ca-certificates | ||
| ADD --chmod=644 https://cartesi.github.io/linux-packages/apt/keys/cartesi-deb-key.gpg.bin /etc/apt/trusted.gpg.d/cartesi-deb-key.gpg |
There was a problem hiding this comment.
This link is broken, cartesi-deb-key.gpg.bin should exist as a binary public GPG key.
| Example usage: | ||
|
|
||
| ```sh | ||
| # Install key to verify signature of repository packages |
There was a problem hiding this comment.
Better mention to install sudo and wget. Because typically they don't come installed in standard Debian docker images.
|
|
||
| ## Quick start | ||
|
|
||
| Packages in this repository are compatible with **Debian 12** (Bookworm) or **Ubuntu 24.04** (Noble) on *amd64*, *arm64*, and *riscv64* architectures using the APT package manager. |
There was a problem hiding this comment.
It's not compatible with Bookworm anymore, I am sure because I tried. We support Debian Trixie and above, Ubuntu Noble and above.
|
|
||
| Cartesi Linux packages repository, containing packaging for: | ||
|
|
||
| - Debian 12 (Bookworm) - Host |
| Cartesi Linux packages repository, containing packaging for: | ||
|
|
||
| - Debian 12 (Bookworm) - Host | ||
| - Ubuntu 24.04 LTS (Noble) - Guest |
There was a problem hiding this comment.
Also Host and Guest. For both Ubuntu and Debian.
| @@ -0,0 +1,54 @@ | |||
| # Maintainer: Eduardo Bart <edub4rt@gmail.com> | |||
There was a problem hiding this comment.
I want to remove my name here, and all APKBUILD files. But we need to replace with some name and email, otherwise the builder might generate warnings. Could be something like Maintainer: Cartesi Contributors <something@cartesi.io>
I don't know what email to use.
| Debian/Ubuntu packages are available in [debian](debian) subdirectory. | ||
| Alpine packages are available in [alpine](alpine) subdirectory. | ||
|
|
||
| You can find instructions on the sub directories. |
There was a problem hiding this comment.
We need to create a LICENSE and AUTHORS file.
Also mention the LICENSE.