ci: install cmake for the default Cuprate build
Some checks failed
ci / test (pull_request) Failing after 52s
ci / sdk (pull_request) Successful in 1m34s
android-ci / android (pull_request) Successful in 11m50s

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.
This commit is contained in:
agent 2026-10-08 11:34:44 -04:00
commit 14a0d22b20
No known key found for this signature in database
3 changed files with 10 additions and 5 deletions

View file

@ -116,6 +116,8 @@ jobs:
-w /src \ -w /src \
"$RUST_IMAGE" \ "$RUST_IMAGE" \
sh -euxc 'mkdir -p /src /target/tmp && tar xzf - -C /src && cd /src \ 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 \ && rustup component add clippy \
&& cargo test --locked \ && cargo test --locked \
&& cargo clippy --locked --all-targets -- -D warnings' && cargo clippy --locked --all-targets -- -D warnings'
@ -131,8 +133,11 @@ jobs:
# `v*.*.*` — while both the root suites and local `cargo test` stay green. # `v*.*.*` — while both the root suites and local `cargo test` stay green.
# Build it here. # Build it here.
# #
# The root `test` job no longer installs `pkg-config`/`libssl-dev` — the root # The root `test` job installs `cmake` and `build-essential` (g++, make) because
# crate defaults to Arti's rustls backend, so TLS needs no system OpenSSL. # 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 # The `rusqlite` `bundled-sqlcipher-vendored-openssl` feature that both jobs
# use compiles OpenSSL from source, which needs `perl` and `make` (present in # use compiles OpenSSL from source, which needs `perl` and `make` (present in
# the `rust:*-bookworm` image), not the `-dev` headers. This job keeps the # the `rust:*-bookworm` image), not the `-dev` headers. This job keeps the

View file

@ -79,7 +79,7 @@ jobs:
"$RUST_IMAGE" \ "$RUST_IMAGE" \
sh -euxc 'mkdir -p /src /target/tmp && tar xzf - -C /src && cd /src \ sh -euxc 'mkdir -p /src /target/tmp && tar xzf - -C /src && cd /src \
&& apt-get update \ && 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 toolchain install nightly --profile minimal \
&& rustup default nightly \ && rustup default nightly \
&& cargo install cargo-fuzz --locked \ && cargo install cargo-fuzz --locked \

View file

@ -218,7 +218,7 @@ jobs:
"$RUST_IMAGE" \ "$RUST_IMAGE" \
sh -euxc 'mkdir -p /src && tar xzf - -C /src && cd /src \ 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 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 \ && cargo build --release --locked \
&& strip /target/release/onionwire \ && strip /target/release/onionwire \
&& ls -l /target/release/onionwire' && ls -l /target/release/onionwire'
@ -301,7 +301,7 @@ jobs:
"$RUST_IMAGE" \ "$RUST_IMAGE" \
sh -euxc 'mkdir -p /src && tar xzf - -C /src && cd /src \ 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 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 \ && cargo build --release --locked \
&& strip /target/release/onionwire \ && strip /target/release/onionwire \
&& ls -l /target/release/onionwire' && ls -l /target/release/onionwire'