From f3ff86263a9d06234c8cbf02bb9e6f4a0536a785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Schl=C3=B6ffel?= Date: Tue, 9 Jun 2026 01:21:29 +0200 Subject: [PATCH] fix CI build (optimize memory usage during build) --- packaging/alpine/local/greptimedb/APKBUILD | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packaging/alpine/local/greptimedb/APKBUILD b/packaging/alpine/local/greptimedb/APKBUILD index f81c0e1..f116191 100644 --- a/packaging/alpine/local/greptimedb/APKBUILD +++ b/packaging/alpine/local/greptimedb/APKBUILD @@ -31,9 +31,13 @@ options="net" source="$pkgname-$pkgver.tar.gz::https://github.com/GreptimeTeam/greptimedb/archive/refs/tags/v$pkgver.tar.gz" _rust_toolchain="nightly-2026-03-21" +_cargo_profile="nightly" export CARGO_HOME="$srcdir/cargo" export RUSTUP_HOME="$srcdir/rustup" export CARGO_BUILD_JOBS="${CARGO_BUILD_JOBS:-2}" +export CARGO_PROFILE_NIGHTLY_CODEGEN_UNITS="${CARGO_PROFILE_NIGHTLY_CODEGEN_UNITS:-16}" +export CARGO_PROFILE_NIGHTLY_DEBUG="${CARGO_PROFILE_NIGHTLY_DEBUG:-false}" +export CARGO_PROFILE_NIGHTLY_LTO="${CARGO_PROFILE_NIGHTLY_LTO:-thin}" export LIBRARY_PATH="/usr/lib" prepare() { @@ -47,18 +51,18 @@ prepare() { build() { "$CARGO_HOME"/bin/rustup run "$_rust_toolchain" cargo build \ - --release \ + --profile "$_cargo_profile" \ --locked \ --bin greptime \ --features servers/dashboard } check() { - "$builddir"/target/release/greptime --version + "$builddir"/target/"$_cargo_profile"/greptime --version } package() { - install -Dm755 "$builddir"/target/release/greptime \ + install -Dm755 "$builddir"/target/"$_cargo_profile"/greptime \ "$pkgdir"/usr/bin/greptime }