SimpliFly03 / archlinux-package-action

GitHub Action to run Arch Linux's package tools

Home Page:https://github.com/marketplace/actions/arch-linux-s-package-action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 checksums on PKGBUILD file
  • Generate .SRCINFO based on your PKGBUILD
  • Validate PKGBUILD with namcap
  • 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
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.

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: datakrama/archlinux-package-action@v1

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: datakrama/archlinux-package-action@v1
        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: datakrama/archlinux-package-action@v1
        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: datakrama/archlinux-package-action@v1
        with:
          path: $GITHUB_WORKSPACE/package
          flags: '-si --noconfirm'
          namcap: false

License

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

About

GitHub Action to run Arch Linux's package tools

https://github.com/marketplace/actions/arch-linux-s-package-action

License:MIT License


Languages

Language:Shell 71.1%Language:Dockerfile 28.9%