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 runs-on: docker
container: container:
image: archlinux:base-devel 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: env:
PKGDEST: ./build PKGDEST: ./build
@ -31,13 +31,25 @@ jobs:
run: | run: |
pwd pwd
ls -la 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 - name: Build package
run: | run: |
export PKGDEST=${PKGDEST} 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 - uses: actions/upload-artifact@v3
with: with:
name: lol
path: build/ path: build/