Update .forgejo/workflows/test.yaml

This commit is contained in:
Fijxu 2024-03-15 18:15:26 -03:00
parent e4c474a2bb
commit 28454cbbeb

View file

@ -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
export PKGDEST=${PKGDEST}
su build -c "/usr/bin/makepkg -s --noconfirm --noprogressbar"