system-helpers/.forgejo/workflows/build.yaml
Alexander Schäferdiek 73b0a98d6e
All checks were successful
/ build (push) Successful in 3m49s
Remove aur.myservermanager.com
2023-11-22 16:13:19 +01:00

33 lines
1 KiB
YAML

on: [ push ]
jobs:
build:
runs-on: docker
container:
image: archlinux/archlinux:base-devel
steps:
- name: Prepare requirements
run: |
pacman -Syu --noconfirm
pacman -Sy --noconfirm nodejs npm git
pacman -Sy --noconfirm shellcheck
pacman -Scc --noconfirm
- uses: actions/checkout@v3
name: Clone
- name: Shellcheck
run: |
find usr/local/bin -type f -exec echo Testing {} \; -exec shellcheck {} \;
- name: Build ArchLinux package
run: |
useradd -m build
cp -r ${{ github.workspace }}/_pkg/ /home/build/
chown -R build:build /home/build
cd /home/build/_pkg
sudo -u build makepkg -csf
sudo -u build repo-add repo-aur-myservermanager-com.db.tar.gz *.zst
cp *.zst ${{ github.workspace }}/_pkg/
cp *.tar.gz ${{ github.workspace }}/_pkg/
echo "Produced package and AUR contents"
ls -la ${{ github.workspace }}/_pkg/