diff --git a/.forgejo/workflows/test.yaml b/.forgejo/workflows/test.yaml index a5ba02b..d1f12b5 100644 --- a/.forgejo/workflows/test.yaml +++ b/.forgejo/workflows/test.yaml @@ -10,7 +10,7 @@ jobs: runs-on: docker container: image: archlinux:base-devel - options: --privileged --net=host --cap-add SYS_ADMIN --volume /etc/machine-id:/etc/machine-id:ro + options: --privileged --net=host --cap-add SYS_ADMIN env: PKGDEST: ./build @@ -31,13 +31,25 @@ jobs: run: | pwd ls -la - mkdir -p ./build + useradd -d /build -m build + echo 'build ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers + chown -R build:build ../* + su build -c "mkdir -p ./build" - name: Build package run: | export PKGDEST=${PKGDEST} - makepkg -s + su build -c "/usr/bin/makepkg -s --noconfirm --noprogressbar" + git status + rm .SRCINFO + makepkg --printsrcinfo > .SRCINFO + git status + git add PKGBUILD .SRCINFO + git commit -m "test123" + git log + git status - uses: actions/upload-artifact@v3 with: + name: lol path: build/