dnsproxy-git/.forgejo/workflows/test.yaml

57 lines
1.2 KiB
YAML
Raw Normal View History

2024-03-15 13:42:43 -03:00
name: AUR Publish
on:
push:
branches:
2024-03-15 13:44:10 -03:00
- master
2024-03-15 13:42:43 -03:00
jobs:
build-and-publish:
2024-03-15 13:43:12 -03:00
runs-on: docker
2024-03-15 14:37:42 -03:00
container:
2024-03-15 14:49:37 -03:00
image: archlinux:base-devel
2024-03-15 20:07:15 -03:00
options: --privileged --net=host --cap-add SYS_ADMIN
2024-03-15 18:15:26 -03:00
env:
PKGDEST: ./build
2024-03-15 13:42:43 -03:00
steps:
- name: Install dependencies
run: |
2024-03-15 18:20:59 -03:00
whoami
2024-03-15 18:24:07 -03:00
pwd
ls -la
2024-03-15 14:41:45 -03:00
pacman -Syu --noconfirm --noprogressbar
pacman -S --noconfirm --noprogressbar base-devel git devtools nodejs
2024-03-15 14:39:24 -03:00
- name: Checkout code
uses: https://code.forgejo.org/actions/checkout@v3
2024-03-15 13:42:43 -03:00
2024-03-15 18:19:13 -03:00
- name: xd
run: |
2024-03-15 18:24:07 -03:00
pwd
ls -la
2024-03-15 20:07:15 -03:00
useradd -d /build -m build
echo 'build ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
chown -R build:build ../*
su build -c "mkdir -p ./build"
2024-03-15 18:19:13 -03:00
2024-03-15 13:42:43 -03:00
- name: Build package
run: |
2024-03-15 18:15:26 -03:00
export PKGDEST=${PKGDEST}
2024-03-15 20:07:15 -03:00
su build -c "/usr/bin/makepkg -s --noconfirm --noprogressbar"
2024-03-16 00:12:27 -03:00
git config --global --add safe.directory ./
2024-03-15 20:07:15 -03:00
git status
rm .SRCINFO
makepkg --printsrcinfo > .SRCINFO
git status
git add PKGBUILD .SRCINFO
git commit -m "test123"
git log
git status
2024-03-15 18:38:47 -03:00
2024-03-15 18:49:52 -03:00
- uses: actions/upload-artifact@v3
2024-03-15 18:39:23 -03:00
with:
2024-03-15 20:07:15 -03:00
name: lol
2024-03-15 18:49:52 -03:00
path: build/