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
e6b6bc8dd6
commit
0a2bcf93a2
3 changed files with 27 additions and 3 deletions
|
|
@ -53,7 +53,7 @@ script emits `rustc-link-lib=static=stdc++` against the NDK's *stub*
|
|||
-Wl,--exclude-libs,libc++abi.a
|
||||
```
|
||||
|
||||
Three more things the build has to get right, each of which fails as something
|
||||
Four more things the build has to get right, each of which fails as something
|
||||
else:
|
||||
|
||||
1. **`ANDROID_NDK` must be exported**, not only `ANDROID_NDK_HOME` / `NDK_HOME`.
|
||||
|
|
@ -70,6 +70,14 @@ else:
|
|||
**host**-targeted, where `-lc++_static` breaks the link. Setting the
|
||||
per-target variable also *replaces* the `target.<triple>.rustflags` in
|
||||
`~/.cargo/config.toml`, so the sysroot `-L` it carried is repeated in the list.
|
||||
4. **The build image needs `cmake`.** RandomX is built by `randomx-rs`'s build
|
||||
script through `cmake-rs`, and both Android workflows' `debian:bookworm`
|
||||
containers install their own package list. Without `cmake` the build gets
|
||||
~11 minutes in, compiles 400-odd crates, and then dies with a `randomx-rs`
|
||||
build-script panic — *failed to execute command: No such file or directory …
|
||||
is `cmake` not installed?* — surfacing as Gradle's "cargo finished with
|
||||
non-zero exit value 101", which reads like a Rust error and is not one.
|
||||
`android-ci.yml` and `android-release.yml` both install it.
|
||||
|
||||
## What ends up in the APK
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue