android: install cmake in the Android build containers
RandomX is the C++ half of the in-process chain daemon and `randomx-rs`'s build
script drives it through `cmake-rs`. Neither `android-ci.yml` nor
`android-release.yml` installed `cmake` in its `debian:bookworm` container, so the
first CI run of this branch compiled 410 crates in 11m37s and then died with
error: failed to run custom build command for `randomx-rs …`
failed to execute command: No such file or directory (os error 2)
is `cmake` not installed?
surfacing as Gradle's "Process 'command 'cargo'' finished with non-zero exit value
101" — which reads like a Rust error and is not one. Both workflows install it now.
`android-ci.yml` also reports the cargo target volume after the build, next to the
wall clock: the disk cost of the feature on the runner is part of the measurement
this change owes.
This commit is contained in:
parent
f9f2055f70
commit
56c867b85c
3 changed files with 27 additions and 3 deletions
|
|
@ -111,8 +111,13 @@ jobs:
|
|||
set -euo pipefail
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get update
|
||||
# `cmake` is for RandomX, the C++ half of the in-process chain daemon:
|
||||
# without it `randomx-rs`'s build script panics with "failed to execute
|
||||
# command: No such file or directory … is `cmake` not installed?" and the
|
||||
# Gradle task dies on "cargo finished with non-zero exit value 101".
|
||||
apt-get install -y --no-install-recommends \
|
||||
openjdk-17-jdk-headless python3 unzip curl ca-certificates file build-essential pkg-config git
|
||||
openjdk-17-jdk-headless python3 unzip curl ca-certificates file build-essential pkg-config git \
|
||||
cmake
|
||||
if [ ! -x /opt/android-sdk/cmdline-tools/latest/bin/sdkmanager ]; then
|
||||
mkdir -p /opt/android-sdk/cmdline-tools
|
||||
curl -fsSL "$ANDROID_CMDLINE_TOOLS_URL" -o /tmp/cmdline-tools.zip
|
||||
|
|
@ -186,6 +191,12 @@ jobs:
|
|||
aapt dump badging "$apk" | sed -n '1,20p' || true
|
||||
echo "=== sizes ==="
|
||||
wc -c "$apk" "$aar"
|
||||
# The cross-compile volume this build just grew. The cuprated graph is
|
||||
# ~152 crates plus a C++ RandomX build, so the number is the disk cost
|
||||
# of the feature on the runner, next to the wall clock above.
|
||||
echo "=== cargo target volume (after this build) ==="
|
||||
du -sh /cargo-target 2>/dev/null || true
|
||||
du -sh /cargo-target/aarch64-linux-android/release 2>/dev/null || true
|
||||
} | tee dist/android-ci-verify.log
|
||||
INNER
|
||||
chmod +x .ci-android-verify.sh
|
||||
|
|
|
|||
|
|
@ -225,8 +225,13 @@ jobs:
|
|||
set -euo pipefail
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get update
|
||||
# `cmake` is for RandomX, the C++ half of the in-process chain daemon
|
||||
# (`cuprate-daemon`, built into the SDK): without it `randomx-rs`'s build
|
||||
# script panics with "is `cmake` not installed?" and the Gradle task dies
|
||||
# on "cargo finished with non-zero exit value 101". Same as android-ci.yml.
|
||||
apt-get install -y --no-install-recommends \
|
||||
openjdk-17-jdk-headless python3 unzip curl ca-certificates file build-essential pkg-config git
|
||||
openjdk-17-jdk-headless python3 unzip curl ca-certificates file build-essential pkg-config git \
|
||||
cmake
|
||||
mkdir -p /root/.android
|
||||
cp /src/.ci-android/onionwire-release.jks /root/.android/onionwire-release.jks
|
||||
cp /src/.ci-android/onionwire-release.env /root/.android/onionwire-release.env
|
||||
|
|
|
|||
Loading…
Reference in a new issue