fix(pkgbuild): honour CARGO_TARGET_DIR in install path
Build and publish packages / build-and-publish (push) Failing after 14m14s

The act_runner exports CARGO_TARGET_DIR=/cache/target for cache
persistence, but the three Rust-app PKGBUILDs hardcoded
target/release/<bin>. Run 87 compiled 8 min then failed at
install stage. Use ${CARGO_TARGET_DIR:-target} so both CI and
local makepkg work.
This commit is contained in:
2026-04-23 13:04:31 +02:00
parent cc5cf1c1e1
commit 5fc1781262
4 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ build() {
package() {
cd "$srcdir/moonlock"
install -Dm755 target/release/moonlock "$pkgdir/usr/bin/moonlock"
install -Dm755 "${CARGO_TARGET_DIR:-target}/release/moonlock" "$pkgdir/usr/bin/moonlock"
# PAM configuration
install -Dm644 config/moonlock-pam "$pkgdir/etc/pam.d/moonlock"