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:
|
container:
|
||||||
image: archlinux:base-devel
|
image: archlinux:base-devel
|
||||||
options: --privileged --net=host
|
options: --privileged --net=host
|
||||||
|
env:
|
||||||
|
PKGDEST: ./build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
@ -22,6 +24,13 @@ jobs:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: https://code.forgejo.org/actions/checkout@v3
|
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
|
- name: Build package
|
||||||
run: |
|
run: |
|
||||||
makepkg -s
|
export PKGDEST=${PKGDEST}
|
||||||
|
su build -c "/usr/bin/makepkg -s --noconfirm --noprogressbar"
|
Loading…
Add table
Reference in a new issue