dnsproxy-git/.forgejo/workflows/test.yaml
Fijxu c5d4da0e23
Some checks failed
AUR Publish / build-and-publish (push) Failing after 2m22s
Update .forgejo/workflows/test.yaml
2024-03-16 00:12:27 -03:00

56 lines
1.2 KiB
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
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 "/usr/bin/makepkg -s --noconfirm --noprogressbar"
git config --global --add safe.directory ./
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/