Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/2m/arch-pkgbuild-builder
Arch Linux PKGBUILD GitHub builder action
https://github.com/2m/arch-pkgbuild-builder
Last synced: 22 days ago
JSON representation
Arch Linux PKGBUILD GitHub builder action
- Host: GitHub
- URL: https://github.com/2m/arch-pkgbuild-builder
- Owner: 2m
- Created: 2019-12-23T09:02:48.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-02-02T19:59:51.000Z (9 months ago)
- Last Synced: 2024-02-02T20:46:22.937Z (9 months ago)
- Language: Shell
- Homepage: https://github.com/marketplace/actions/arch-linux-pkgbuild-builder-action
- Size: 82 KB
- Stars: 31
- Watchers: 5
- Forks: 26
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Arch Linux PKGBUILD builder action
This action builds an validates Arch Linux package.
The `PKGBUILD` and `.SRCINFO` files should be under a subdirectory named the same as the `pkgbuild` of the package.
This assumption is made so this action works well with [aurpublish].[aurpublish]: https://github.com/eli-schwartz/aurpublish
## Inputs
### `target`
**Required** Validation target. Can be one of: `pkgbuild`, `srcinfo`, `run`.
### `pkgname`
**Required** Path to DIRECTORY where the PKGBUILD file is.
Assumes the directory is the name of package, ie /path/to/pkgname/'## Example usage
### pkgbuild
Verifies and builds the package.
```yml
uses: 2m/[email protected]
with:
target: 'pkgbuild'
pkgname: 'ucm-bin'
```### srcinfo
Verifies if the `.SRCINFO` is up to date with the `PKGBUILD`.
```yml
uses: 2m/[email protected]
with:
target: 'srcinfo'
pkgname: 'ucm-bin'
```### run
Installs the package and runs a given `command`.
```yml
uses: 2m/[email protected]
with:
target: 'run'
pkgname: 'ucm-bin'
command: `ucm --version`
```### debug mode (optional)
Add a `debug: true` key, ie.
```yml
uses: 2m/[email protected]
with:
debug: true
target: 'srcinfo'
pkgname: 'ucm-bin'
```This will run `entrypoint.sh` with `set -x` on.
## Used by
So far this action is used by the following packages:
* [ucm-bin](https://github.com/2m/ucm-bin-pkgbuild)
* [authenticator-rs](https://github.com/grumlimited/authenticator-rs)
* [kinesis-tailr](https://github.com/grumlimited/kinesis-tailr)
* [cpeditor](https://github.com/cpeditor/cpeditor)