dnsproxy-git/.forgejo/workflows/test.yaml
Fijxu ae81500427
Some checks failed
AUR Publish / build-and-publish (push) Failing after 1m35s
Update .forgejo/workflows/test.yaml
2024-03-15 19:16:41 -03:00

46 lines
1,007 B
YAML

name: AUR Publish
on:
push:
branches:
- master
jobs:
build-and-publish:
runs-on: docker
container:
image: archlinux:base-devel
options: --privileged --net=host --cap-add SYS_ADMIN --volume /etc/machine-id:/etc/machine-id:ro
env:
PKGDEST: ./build
steps:
- name: Install dependencies
run: |
whoami
pwd
ls -la
pacman -Syu --noconfirm --noprogressbar
pacman -S --noconfirm --noprogressbar base-devel git devtools nodejs
- name: Checkout code
uses: https://code.forgejo.org/actions/checkout@v3
- name: xd
run: |
pwd
ls -la
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}
su build -c "pkgctl build"
- uses: actions/upload-artifact@v3
with:
path: build/