A series of GitHub Actions useful for building Arch Linux's PKGBUILD files in GitHub Action.
Important
pkgbuild-actions is deprecated due to its complexity. If you are looking for an alternative, you can check makepkg-action. But it requires manual migration.
-
Multi-arch support
You can handle
x86_64andaarch64packages with those actions.How to use:
Set
runs-onwith proper value likeubuntu-24.04orubuntu-24.04-arm. The latter will only available for public repository. You can also run the docker image directly with--platformargument to specify which architecture you want to run. -
No yay/paru
Everything is built with a minimal archlinux/archlinuxarm system with
base-devel,baseand other dependencies listed in PKGBUILD installed. Not-in-official-repository dependencies will be installed from a custom repository so pacman can find it directly.This means you have to prepare a custom pacman repository yourself to storage those dependencies. You can use
update-pacman-repoaction in this github repository to achieve that.
-
build
Build PKGBUILD in container.
-
bump-pkgver
Bump
$pkgverby runningpkgver()in PKGBUILD. -
download-sources
Download files defined in
$sourcesarray. -
fetch-pgp-keys
Fetch GnuPG keys defiled in
$validpgpkeysarray. -
get-global-variable
Get top-level variables defined in PKGBUILD.
-
update-pacman-repo
Scan
*.pkg.tar.*in directory and generate a pacman repository.
See README.md in each action's folder.