Update .forgejo/workflows/test.yaml
Some checks failed
AUR Publish / build-and-publish (push) Failing after 2m18s
Some checks failed
AUR Publish / build-and-publish (push) Failing after 2m18s
This commit is contained in:
parent
7e09e85632
commit
d6d02609de
1 changed files with 15 additions and 3 deletions
|
@ -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/
|
||||
|
|
Loading…
Reference in a new issue