Code Monkey home page Code Monkey logo

arch-linux-pkgbuild-package's Introduction

Arch Linux's package tools action

GitHub Workflow Status GitHub release (latest by date) GitHub

Important

This action is a fork of archlinux-package-action by heyhusen all this does is fix some problems (specifically the docker problem)

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

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: hapakaien/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: hapakaien/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: hapakaien/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: hapakaien/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

arch-linux-pkgbuild-package's People

Contributors

heyhusen avatar dependabot[bot] avatar motortruck1221 avatar reenignearcher avatar kamack38 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.