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
|
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/
|
||||||
|
|
Loading…
Reference in a new issue