fix(pkgbuild): honour CARGO_TARGET_DIR in install path
Build and publish packages / build-and-publish (push) Failing after 14m14s
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:
@@ -40,7 +40,7 @@ build() {
|
||||
|
||||
package() {
|
||||
cd "$srcdir/greetd-moongreet"
|
||||
install -Dm755 target/release/moongreet "$pkgdir/usr/bin/moongreet"
|
||||
install -Dm755 "${CARGO_TARGET_DIR:-target}/release/moongreet" "$pkgdir/usr/bin/moongreet"
|
||||
|
||||
# Greeter config
|
||||
install -Dm644 config/moongreet.toml "$pkgdir/etc/moongreet/moongreet.toml"
|
||||
|
||||
Reference in New Issue
Block a user