GitHub Action to run Arch Linux's package tools
Find a file
Husen 08dba55302
Some checks failed
CI / Test (with Dockerfile) (push) Failing after 4s
CI / Publish OCI image (push) Has been skipped
CI / Test (with prebuilt OCI Image) (push) Has been skipped
CI / Release (push) Has been skipped
Merge pull request #58 from heyhusen/ci/weekly-dependabot
ci: change dependabot update to weekly
2025-08-16 09:00:33 +07:00
.github ci: change dependabot update to weekly 2025-08-16 08:55:31 +07:00
.editorconfig feat: add basic CI 2021-05-18 16:49:00 +07:00
.gitignore Add support for loading PGP keys 2025-05-30 23:27:11 +01:00
action.yml Add support for loading PGP keys 2025-05-30 23:27:11 +01:00
CHANGELOG.md chore: release v2.4.0 2025-06-01 11:34:02 +07:00
Dockerfile Use archlinux/multilib-devel 2025-05-25 20:16:43 +01:00
entrypoint.sh Add support for loading PGP keys 2025-05-30 23:27:11 +01:00
LICENSE feat: update LICENSE 2021-05-18 18:12:14 +07:00
README.md Add support for loading PGP keys 2025-05-30 23:27:11 +01:00

Arch Linux's package tools action

GitHub Workflow Status GitHub release (latest by date) GitHub

This action allows running tools needed for creating Arch Linux (and AUR) package. Here's what this action can do:

  • Update pkgver, pkgrel, or checksums on PKGBUILD file
  • Validate PKGBUILD with namcap
  • Generate .SRCINFO based on your PKGBUILD
  • Run makepkg with custom flags (rather than default)

Usage

Requirement

Customizing

Following inputs can be used as step.with keys

Name Type Default Required Description
path String false Path where PKGBUILD is located. This path always located under $GITHUB_WORKSPACE
pkgver String false Update pkgver on your PKGBUILD
pkgrel Integer false Update pkgrel on your PKGBUILD
updpkgsums Boolean false false Update checksums on your PKGBUILD
srcinfo Boolean false false Generate new .SRCINFO
namcap Boolean true false Validate PKGBUILD
flags String -cfs --noconfirm false Flags after makepkg command. Leave this empty will disable this command.
aur Boolean false false Resolve dependencies using paru
update_archlinux_keyring Boolean true false Update the archlinux keyring
pgpkeys String false Comma-separated PGP public keys to be loaded before calling makepkg.
pgpkeyserver String hkps://keyserver.ubuntu.com false PGP key server address.

Examples

1. Basic

This action will run makepkg -cfs --noconfirm command, then validate PKGBUILD with namcap.

name: CI

on:
  push:
    branches: main

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Validate package
        uses: heyhusen/archlinux-package-action@v2

2. Only generate .SRCINFO

name: CI

on:
  push:
    branches: main

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Validate package
        uses: heyhusen/archlinux-package-action@v2
        with:
          flags: ''
          namcap: false
          srcinfo: true

3. Only update checksums on PKGBUILD

name: CI

on:
  push:
    branches: main

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Validate package
        uses: heyhusen/archlinux-package-action@v2
        with:
          flags: ''
          namcap: false
          updpkgsums: true

4. Custom path & custom flags

name: CI

on:
  push:
    branches: main

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Validate package
        uses: heyhusen/archlinux-package-action@v2
        with:
          path: package
          flags: '-si --noconfirm'
          namcap: false

License

The scripts and documentation in this project are released under the MIT License