workflowtest/.forgejo/workflows/test.yml
cat 4fd1148c32
Some checks failed
compile yay and install package from aur / compile-yay (push) Has been cancelled
compile yay and install package from aur
2026-02-19 19:26:06 +03:00

34 lines
No EOL
1 KiB
YAML

name: compile yay and install package from aur
on:
push:
branches:
- main
jobs:
compile-yay:
runs-on: archlinux-latest
container:
image: archlinux:latest
steps:
- name: prepare
run: |
echo "Server = https://mirror.yandex.ru/archlinux/\$repo/os/\$arch" > /etc/pacman.d/mirrorlist
pacman -Sy --noconfirm make go git wget base-devel
wget https://github.com/Jguer/yay/archive/v12.5.7.tar.gz
tar -xf v12.5.7.tar.gz
- name: compile yay
run: |
cd yay-12.5.7
export CGO_ENABLED=1
make VERSION=12.5.7 PREFIX="/usr" build
make VERSION=12.5.7 PREFIX="/usr" install
- name: create user and run yay
run: |
useradd -m -G wheel user
echo '%wheel ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers
chmod 440 /etc/sudoers
su - user -c "whoami; yay -V; yay -S --noconfirm --answerdiff=None --answerclean=None --answeredit=None rust-git; rustc --version"