diff --git a/.forgejo/workflows/test.yaml b/.forgejo/workflows/test.yaml index 321be87..3f8b118 100644 --- a/.forgejo/workflows/test.yaml +++ b/.forgejo/workflows/test.yaml @@ -11,6 +11,8 @@ jobs: container: image: archlinux:base-devel options: --privileged --net=host + env: + PKGDEST: ./build steps: @@ -22,6 +24,13 @@ jobs: - name: Checkout code uses: https://code.forgejo.org/actions/checkout@v3 + - name: Create user + run: | + useradd -d /build -m build + "echo 'build ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers" + su build -c "mkdir -p ./build" + - name: Build package run: | - makepkg -s \ No newline at end of file + export PKGDEST=${PKGDEST} + su build -c "/usr/bin/makepkg -s --noconfirm --noprogressbar" \ No newline at end of file