From 70c6a9fe65aa287de5b2699b07a69dc7eab776ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Artur=20Wyszy=C5=84ski?= Date: Sun, 1 Dec 2024 21:12:51 +0100 Subject: [PATCH] ci: add dedicated cargo home for arch package build - Add separate cargo directory to prevent permission issues - Set CARGO_HOME env var during makepkg execution --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7c0f7b5..9df926a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -186,7 +186,7 @@ jobs: run: | VERSION=$(grep -m1 'version =' Cargo.toml | cut -d '"' -f2) sed -i "s/pkgver=.*/pkgver=$VERSION/" dist/arch/PKGBUILD - mkdir -p /tmp/pkg/src + mkdir -p /tmp/pkg/{cargo,src} cp -r . /tmp/pkg/src/modbus-relay cp dist/arch/PKGBUILD /tmp/pkg @@ -194,7 +194,7 @@ jobs: run: | cd /tmp/pkg chown -R nobody:nobody . - runuser -p -u nobody -g root -- makepkg -s --noconfirm + CARGO_HOME=/tmp/pkg/cargo runuser -p -u nobody -g root -- makepkg -s --noconfirm - name: Upload artifacts uses: actions/upload-artifact@v4