use yay instead of pacman

This commit is contained in:
Dominic 2023-03-25 13:51:03 +01:00
parent 58f13c48ad
commit c0ac367326
Signed by: msrd0
GPG key ID: DCC8C247452E98F9

View file

@ -18,7 +18,14 @@ runs:
with:
entrypoint: bash
args: |
-c 'useradd -m user && echo "user ALL=(ALL:ALL) NOPASSWD: ALL" >/etc/sudoers.d/user && chmod 777 . && pacman -Syu --noconfirm && sudo -u user -- makepkg -s'
-euo pipefail -c '
pacman -Syu --noconfirm git
(cd ~; git clone https://aur.archlinux.org/yay.git; cd yay; makepkg -si --noconfirm)
useradd -m user
echo "user ALL=(ALL:ALL) NOPASSWD: ALL" >/etc/sudoers.d/user
chmod 777 .
sudo -u user -- PACMAN=yay makepkg -s --noconfirm
'
- name: Ensure .SRCINFO is up to date
uses: docker://docker.io/library/archlinux:base-devel