workflowtest/.forgejo/workflows/test.yml
cat bddd77f0eb
All checks were successful
compile yay / compile-yay (push) Successful in 1m41s
compile yay
2026-02-19 19:03:41 +03:00

33 lines
No EOL
716 B
YAML

name: compile yay
on:
push:
branches:
- main
jobs:
compile-yay:
runs-on: archlinux-latest
container:
image: archlinux:latest
steps:
- name: prepare
run: |
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: |
sudo useradd -m -G wheel user
sudo su - user
whoami
yay -V