From 14a0d22b20c124c31559dc49e8b95c1413d9bc0c Mon Sep 17 00:00:00 2001 From: agent Date: Thu, 8 Oct 2026 11:34:44 -0400 Subject: [PATCH] ci: install cmake for the default Cuprate build RandomX's cmake-rs build script panics with "is cmake not installed?" in the rust:bookworm job container once cuprate-daemon is a default feature. Install cmake and build-essential in the root test, release, and fuzz containers. Android jobs already did this. --- .forgejo/workflows/ci.yml | 9 +++++++-- .forgejo/workflows/fuzz.yml | 2 +- .forgejo/workflows/release.yml | 4 ++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 6cb4f58..526b314 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -116,6 +116,8 @@ jobs: -w /src \ "$RUST_IMAGE" \ sh -euxc 'mkdir -p /src /target/tmp && tar xzf - -C /src && cd /src \ + && apt-get update \ + && apt-get install -y --no-install-recommends cmake build-essential \ && rustup component add clippy \ && cargo test --locked \ && cargo clippy --locked --all-targets -- -D warnings' @@ -131,8 +133,11 @@ jobs: # `v*.*.*` — while both the root suites and local `cargo test` stay green. # Build it here. # - # The root `test` job no longer installs `pkg-config`/`libssl-dev` — the root - # crate defaults to Arti's rustls backend, so TLS needs no system OpenSSL. + # The root `test` job installs `cmake` and `build-essential` (g++, make) because + # the default feature set includes `cuprate-daemon`. RandomX's build script + # calls cmake; without it the job dies with "is cmake not installed?" (os error 2). + # It still does not install `pkg-config`/`libssl-dev` — the root crate defaults + # to Arti's rustls backend, so TLS needs no system OpenSSL. # The `rusqlite` `bundled-sqlcipher-vendored-openssl` feature that both jobs # use compiles OpenSSL from source, which needs `perl` and `make` (present in # the `rust:*-bookworm` image), not the `-dev` headers. This job keeps the diff --git a/.forgejo/workflows/fuzz.yml b/.forgejo/workflows/fuzz.yml index e714fcc..ec02d91 100644 --- a/.forgejo/workflows/fuzz.yml +++ b/.forgejo/workflows/fuzz.yml @@ -79,7 +79,7 @@ jobs: "$RUST_IMAGE" \ sh -euxc 'mkdir -p /src /target/tmp && tar xzf - -C /src && cd /src \ && apt-get update \ - && apt-get install -y --no-install-recommends pkg-config libssl-dev \ + && apt-get install -y --no-install-recommends pkg-config libssl-dev cmake build-essential \ && rustup toolchain install nightly --profile minimal \ && rustup default nightly \ && cargo install cargo-fuzz --locked \ diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index ac5e6ef..ae06aff 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -218,7 +218,7 @@ jobs: "$RUST_IMAGE" \ sh -euxc 'mkdir -p /src && tar xzf - -C /src && cd /src \ && apt-get -o Acquire::Retries=5 -o Acquire::http::Timeout=20 -o Acquire::https::Timeout=20 -o Acquire::ForceIPv4=true update \ - && apt-get -o Acquire::Retries=5 -o Acquire::http::Timeout=20 -o Acquire::https::Timeout=20 -o Acquire::ForceIPv4=true install -y --no-install-recommends pkg-config libssl-dev \ + && apt-get -o Acquire::Retries=5 -o Acquire::http::Timeout=20 -o Acquire::https::Timeout=20 -o Acquire::ForceIPv4=true install -y --no-install-recommends pkg-config libssl-dev cmake build-essential \ && cargo build --release --locked \ && strip /target/release/onionwire \ && ls -l /target/release/onionwire' @@ -301,7 +301,7 @@ jobs: "$RUST_IMAGE" \ sh -euxc 'mkdir -p /src && tar xzf - -C /src && cd /src \ && apt-get -o Acquire::Retries=5 -o Acquire::http::Timeout=20 -o Acquire::https::Timeout=20 -o Acquire::ForceIPv4=true update \ - && apt-get -o Acquire::Retries=5 -o Acquire::http::Timeout=20 -o Acquire::https::Timeout=20 -o Acquire::ForceIPv4=true install -y --no-install-recommends pkg-config libssl-dev \ + && apt-get -o Acquire::Retries=5 -o Acquire::http::Timeout=20 -o Acquire::https::Timeout=20 -o Acquire::ForceIPv4=true install -y --no-install-recommends pkg-config libssl-dev cmake build-essential \ && cargo build --release --locked \ && strip /target/release/onionwire \ && ls -l /target/release/onionwire'