From 263257d49699e390d6e74171cb3c1d12e535daa2 Mon Sep 17 00:00:00 2001 From: Luke Craig Date: Wed, 10 Jun 2026 21:00:04 -0400 Subject: [PATCH] penguin: fix compiled env module build in CI The v0.0.8 release shipped without any compiled CPUArchState CFFI modules: ffi.compile() needs Python.h, the builder image lacks python3-dev, and penguin-env-cffi-gen.py's per-target fallback quietly shipped ABI headers only. Install python3-dev and gate the release on lib/penguin-qemu-env/ being present in the package so a silent fallback cannot publish again. --- .github/workflows/publish.yml | 1 + Dockerfile | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 300fc0b094..cdefedd564 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -72,6 +72,7 @@ jobs: test -s dist/penguin-qemu.tar.gz tar tzf dist/penguin-qemu.tar.gz | grep -q '^lib/libqemu-system-' tar tzf dist/penguin-qemu.tar.gz | grep -q '^include/penguin-qemu-cffi/' + tar tzf dist/penguin-qemu.tar.gz | grep -q '^lib/penguin-qemu-env/' tar tzf dist/penguin-qemu.tar.gz | grep -q '^bin/qemu-img$' (cd dist && sha256sum penguin-qemu.tar.gz > SHA256SUMS) diff --git a/Dockerfile b/Dockerfile index 334fc7d391..b5507bb1ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,7 @@ RUN apt-get update && \ ninja-build \ pkg-config \ python3 \ + python3-dev \ python3-pip \ python3-setuptools \ python3-tomli \