Skip to content

feat: set up QEMU by default via docker/tonistiigi/binfmt - #3

Merged
endersonmaia merged 1 commit into
mainfrom
feat/setup-qemu-by-default-on-linux
Aug 7, 2026
Merged

feat: set up QEMU by default via docker/tonistiigi/binfmt#3
endersonmaia merged 1 commit into
mainfrom
feat/setup-qemu-by-default-on-linux

Conversation

@endersonmaia

Copy link
Copy Markdown
Contributor

Registers the riscv64 QEMU emulator through Docker (the same tonistiigi/binfmt
image docker/setup-qemu-action uses), enabling cartesi build/docker buildx to
run Cartesi Machine's RISC-V images without a separate setup-qemu-action step.
Linux only, since binfmt_misc is a Linux kernel facility; skipped with an info
log on macOS. Opt out with 'setup-qemu: false'.

Only riscv64 is registered, not the full architecture set 'binfmt_misc
--install all' offers: the Cartesi Machine is a RISC-V guest, so every other
foreign architecture would just cost startup time for no benefit.

The image is pinned to a known stable tag and its digest
(qemu-v10.2.3@sha256:400a4873...), rather than the floating ':latest' tag,
so the pulled image is reproducible and verified the same way every other
download in this action is.

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com

Registers the riscv64 QEMU emulator through Docker (the same tonistiigi/binfmt
image docker/setup-qemu-action uses), enabling cartesi build/docker buildx to
run Cartesi Machine's RISC-V images without a separate setup-qemu-action step.
Linux only, since binfmt_misc is a Linux kernel facility; skipped with an info
log on macOS. Opt out with 'setup-qemu: false'.

Only riscv64 is registered, not the full architecture set 'binfmt_misc
--install all' offers: the Cartesi Machine is a RISC-V guest, so every other
foreign architecture would just cost startup time for no benefit.

The image is pinned to a known stable tag and its digest
(qemu-v10.2.3@sha256:400a4873...), rather than the floating ':latest' tag,
so the pulled image is reproducible and verified the same way every other
download in this action is.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@endersonmaia
endersonmaia requested a review from tuler August 7, 2026 13:26
@endersonmaia
endersonmaia merged commit 2d91a15 into main Aug 7, 2026
10 checks passed
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