fix CI build (rustup)
Some checks failed
Build Alpine Packages / build-and-publish (push) Failing after 27s
Some checks failed
Build Alpine Packages / build-and-publish (push) Failing after 27s
This commit is contained in:
@@ -9,7 +9,6 @@ license="Apache-2.0"
|
|||||||
depends="ca-certificates"
|
depends="ca-certificates"
|
||||||
makedepends="
|
makedepends="
|
||||||
binutils
|
binutils
|
||||||
cargo
|
|
||||||
clang
|
clang
|
||||||
cmake
|
cmake
|
||||||
coreutils
|
coreutils
|
||||||
@@ -22,7 +21,7 @@ makedepends="
|
|||||||
perl
|
perl
|
||||||
protobuf
|
protobuf
|
||||||
protobuf-dev
|
protobuf-dev
|
||||||
rust
|
rustup
|
||||||
zlib-dev
|
zlib-dev
|
||||||
zlib-static
|
zlib-static
|
||||||
zstd-dev
|
zstd-dev
|
||||||
@@ -31,12 +30,19 @@ makedepends="
|
|||||||
options="net"
|
options="net"
|
||||||
source="$pkgname-$pkgver.tar.gz::https://github.com/GreptimeTeam/greptimedb/archive/refs/tags/v$pkgver.tar.gz"
|
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 CARGO_HOME="$srcdir/cargo"
|
||||||
|
export RUSTUP_HOME="$srcdir/rustup"
|
||||||
export CARGO_BUILD_JOBS="${CARGO_BUILD_JOBS:-2}"
|
export CARGO_BUILD_JOBS="${CARGO_BUILD_JOBS:-2}"
|
||||||
export LIBRARY_PATH="/usr/lib"
|
export LIBRARY_PATH="/usr/lib"
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
default_prepare
|
||||||
|
rustup toolchain install --profile minimal --no-self-update "$_rust_toolchain"
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cargo build \
|
rustup run "$_rust_toolchain" cargo build \
|
||||||
--release \
|
--release \
|
||||||
--locked \
|
--locked \
|
||||||
--bin greptime \
|
--bin greptime \
|
||||||
|
|||||||
Reference in New Issue
Block a user