Update .forgejo/workflows/test.yaml
Some checks failed
AUR Publish / build-and-publish (push) Failing after 2m18s

This commit is contained in:
Fijxu 2024-03-15 20:07:15 -03:00
parent 7e09e85632
commit d6d02609de

View file

@ -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/