Skip to content

generate-soh-git-pkg #223

generate-soh-git-pkg

generate-soh-git-pkg #223

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/[email protected]
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