fix(ci): install gcc and zlib headers for native-image compilation
CI / Build Native (push) Failing after 6m54s
CI / Build & Push Native Image (push) Has been skipped

GraalVM native-image requires a C compiler (gcc) and zlib dev
headers to compile native binaries. The maven:3.9.6-eclipse-temurin-21
image is JDK-only and lacks these build tools, causing the build
to fail with:

  Error: Default native-compiler executable 'gcc' not found via PATH

Extend the install step with build-essential (gcc, g++, make)
and zlib1g-dev so the native-image pipeline has the required
toolchain.
This commit is contained in:
2026-08-12 18:16:44 -04:00
parent 7b89066ef3
commit 0b95c48975
+3 -2
View File
@@ -20,15 +20,16 @@ jobs:
container:
image: maven:3.9.6-eclipse-temurin-21
steps:
- name: Install git, node, and basic tools
- name: Install git, node, gcc, and basic tools
run: |
apt-get update
apt-get install -y git curl ca-certificates
apt-get install -y git curl ca-certificates build-essential zlib1g-dev
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
apt-get install -y nodejs
rm -rf /var/lib/apt/lists/*
git --version
node --version
gcc --version
- name: Checkout
uses: actions/checkout@v4