Skip to content

Enable Debian Build,Sign,Publish via GH Actions#5

Open
endersonmaia wants to merge 19 commits intomainfrom
feature/ci-debian-build-multiple-archs
Open

Enable Debian Build,Sign,Publish via GH Actions#5
endersonmaia wants to merge 19 commits intomainfrom
feature/ci-debian-build-multiple-archs

Conversation

@endersonmaia
Copy link
Copy Markdown

  • 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

Comment thread debian/README.md

```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
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can make this easier so users does not need to install gpg, by providing a cartesi-deb-key.gpg.bin file.

Comment thread debian/README.md

# 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
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This link is broken, cartesi-deb-key.gpg.bin should exist as a binary public GPG key.

Comment thread debian/README.md
Example usage:

```sh
# Install key to verify signature of repository packages
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better mention to install sudo and wget. Because typically they don't come installed in standard Debian docker images.

Comment thread debian/README.md

## 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.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not compatible with Bookworm anymore, I am sure because I tried. We support Debian Trixie and above, Ubuntu Noble and above.

Comment thread README.md

Cartesi Linux packages repository, containing packaging for:

- Debian 12 (Bookworm) - Host
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to Debian 13 Trixie here.

Comment thread README.md
Cartesi Linux packages repository, containing packaging for:

- Debian 12 (Bookworm) - Host
- Ubuntu 24.04 LTS (Noble) - Guest
Copy link
Copy Markdown

@edubart edubart Apr 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also Host and Guest. For both Ubuntu and Debian.

@@ -0,0 +1,54 @@
# Maintainer: Eduardo Bart <edub4rt@gmail.com>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread README.md
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.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to create a LICENSE and AUTHORS file.
Also mention the LICENSE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants