fix CI build (rustup)
Some checks failed
Build Alpine Packages / build-and-publish (push) Failing after 27s

This commit is contained in:
Joachim Schlöffel
2026-06-09 00:05:23 +02:00
parent 67fcee9099
commit 1d112d23d1

View File

@@ -9,7 +9,6 @@ license="Apache-2.0"
depends="ca-certificates"
makedepends="
binutils
cargo
clang
cmake
coreutils
@@ -22,7 +21,7 @@ makedepends="
perl
protobuf
protobuf-dev
rust
rustup
zlib-dev
zlib-static
zstd-dev
@@ -31,12 +30,19 @@ makedepends="
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"
export CARGO_HOME="$srcdir/cargo"
export RUSTUP_HOME="$srcdir/rustup"
export CARGO_BUILD_JOBS="${CARGO_BUILD_JOBS:-2}"
export LIBRARY_PATH="/usr/lib"
prepare() {
default_prepare
rustup toolchain install --profile minimal --no-self-update "$_rust_toolchain"
}
build() {
cargo build \
rustup run "$_rust_toolchain" cargo build \
--release \
--locked \
--bin greptime \