Update .forgejo/workflows/test.yaml
This commit is contained in:
parent
e4c474a2bb
commit
28454cbbeb
1 changed files with 10 additions and 1 deletions
|
@ -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"
|
Loading…
Reference in a new issue