-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (52 loc) · 1.83 KB
/
build.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Build Archlinux Packages
on:
workflow_dispatch: # allow manual trigger
jobs:
Build: # build packages
strategy:
matrix:
pkg: [
aseprite,
citra,
ladybird-git,
ly-git,
shpool,
xenia-git
]
fail-fast: false # allow package build fails
runs-on: ubuntu-latest
container: archlinux:latest
steps:
- name: Update system base and expected provider depends
run: |
pacman -Syu --noconfirm
pacman -S --noconfirm base-devel git
pacman -S --noconfirm llvm sdl2 vulkan-intel
echo 'nobody ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/nobody
- name: Add Chaotic-AUR for additional depends
run: |
pacman-key --init
pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com
pacman-key --lsign-key 3056513887B78AEB
pacman -U --noconfirm 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'
printf '[chaotic-aur]\nInclude = /etc/pacman.d/chaotic-mirrorlist\n' >> /etc/pacman.conf
pacman -Syu --noconfirm
- name: Checkout repo
uses: actions/checkout@v4
- name: Bump submodules
run: |
git config --global --add safe.directory /__w/aurbuild/aurbuild
git submodule update --init --remote
- name: Build package
run: |
cd ${{ matrix.pkg }}
chmod a+rwx .
export MAKEFLAGS="--jobs=$(nproc)"
runuser -m -u nobody -- makepkg -s --noconfirm
- name: Upload to release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
tag: "packages"
artifacts: "./*/*.zst"
token: ${{ secrets.GITHUB_TOKEN }}