-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (54 loc) · 1.67 KB
/
generate-soh-git-pkg.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
name: generate-soh-git-pkg
on:
push:
paths:
- soh-git/**
schedule:
- cron: '0 0 * * 0,1,3,5'
workflow_dispatch:
jobs:
build-soh-git-pkg:
runs-on: ubuntu-latest
name: Build Soh Arch package (Git)
steps:
- uses: actions/checkout@v3
- name: Build package
uses: Alto1772/arch-pkgbuild-builder@94308635315e36ccdde50ddc2327e244419590da
with:
target: pkgbuild
pkgname: soh-git/
- name: Upload package
uses: actions/upload-artifact@v3
with:
name: soh-git
path: |
soh-git/soh-git-*.pkg.tar.zst
soh-git/soh-otr-exporter-git-*.pkg.tar.zst
# Requires Arch Linux distro with a user that has no password
# put roms at /roms, then rename them as oot-<VERSION_XML>.z64
# just like its otr pkgs. Outputs pkgs at /output
build-soh-otrs-git:
needs: build-soh-git-pkg
runs-on: [ self-hosted, asset-builder ]
name: Build & Publish OTR packages (git) (private use)
steps:
- uses: actions/checkout@v3
- name: Download built soh-git package
uses: actions/download-artifact@v3.0.1
with:
name: soh-git
path: pkgs
- name: Install built soh-git package
run: sudo pacman -U --noconfirm pkgs/soh-otr-exporter-git-*.tar.zst
- name: Build OTR packages
run: |
for d in soh-otr-*; do
cp "/roms/oot-${d#soh-otr-}.z64" "$d/baserom.z64"
( cd $d; makepkg --syncdeps --noconfirm; )
done
- name: Remove soh-git package
run: sudo pacman -R --noconfirm soh-otr-exporter-git
- name: Publish Main + OTR packages
run: |
cp soh-otr-*/*.tar.zst /output
cp pkgs/*.tar.zst /output