-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (33 loc) · 1.09 KB
/
arch-pkgbuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Arch PKGBUILD
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
container:
image: archlinux
options: --privileged
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup
steps:
- uses: actions/checkout@v2
- name: get PKGBUILD
run: |
pacman -Syu --noconfirm
pacman -Sy --noconfirm debugedit git opendoas fakeroot binutils lua sdl2 sdl2_image sdl2_ttf sdl2_mixer autoconf make gcc cmake which pkgconf glib2 glu
useradd -m -G wheel -s /bin/bash tester
echo permit nopass :wheel > /etc/doas.conf
echo permit nopass root as tester >> /etc/doas.conf
ln -s /bin/doas /bin/sudo
echo '#!/bin/sh' > ./all.sh
echo export LANG=en_US.UTF-8 >> ./all.sh
echo export LC_CTYPE=en_US.UTF-8 >> ./all.sh
echo export LC_ALL=en_US.UTF-8 >> ./all.sh
echo cd >> ./all.sh
echo git clone https://aur.archlinux.org/yirl-git.git/ >> ./all.sh
echo cd yirl-git >> ./all.sh
echo makepkg >> ./all.sh
chmod +x ./all.sh
cat all.sh
sudo -u tester ./all.sh