From 2304c0d1c799127e0eedd29638199f45b2d94d08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <bgyorgy@archlinux.org> Date: Sun, 1 Sep 2024 00:37:18 +0200 Subject: [PATCH] Download crates in prepare() --- PKGBUILD | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PKGBUILD b/PKGBUILD index 851cc54..9c3856c 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -44,6 +44,9 @@ export CARGO_PROFILE_RELEASE_DEBUG=2 prepare() { cd $pkgname + + export CARGO_HOME="$srcdir/build/cargo-home" + cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" } build() { @@ -52,7 +55,7 @@ build() { } check() { - meson test -C build --print-errorlogs + meson test -C build --print-errorlogs --no-rebuild } package() { -- GitLab