Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ffy00/build-arch-package
Build an Arch Linux package
https://github.com/ffy00/build-arch-package
arch arch-linux archlinux ci github-actions hacktoberfest
Last synced: 29 days ago
JSON representation
Build an Arch Linux package
- Host: GitHub
- URL: https://github.com/ffy00/build-arch-package
- Owner: FFY00
- License: gpl-3.0
- Created: 2020-04-15T13:43:42.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-04-10T17:35:18.000Z (almost 2 years ago)
- Last Synced: 2024-12-28T02:16:15.990Z (about 1 month ago)
- Topics: arch, arch-linux, archlinux, ci, github-actions, hacktoberfest
- Language: Shell
- Homepage:
- Size: 23.4 KB
- Stars: 18
- Watchers: 5
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Build Arch Linux package Github Action
```yaml
jobs:
my-job:
...
container:
image: archlinux
options: --privileged
steps:
...
- name: Build Arch Linux package
uses: FFY00/build-arch-package@v1
with:
PKGBUILD: path/to/my/PKGBUILD
...
````%COMMIT%` in the PKGBUILD will be replaced by the commit that triggered the action.
See [.github/workflows/test.yml](.github/workflows/test.yml) for a working example.
### Arguments
Key | Description | Required | Default Value
-------------- | ------------------------------------------- |:--------:| -------------
`PKGBUILD` | PKGBUILD path | **Yes** |
`BUILD_SCRIPT` | Pacman configuration file used | No | `extra-x86_64-build`
`OUTDIR` | Output directory to store the built package | No | `$HOME/arch-packages`See:[DeveloperWiki:Building_in_a_clean_chroot](https://wiki.archlinux.org/index.php/DeveloperWiki:Building_in_a_clean_chroot)
Target repository | Architecture | Build script to use | Pacman configuration file used
-------------------------:|-------------:|-----------------------:|-------------------------------
extra/community | x86_64 | extra-x86_64-build | /usr/share/devtools/pacman-extra.conf
testing/community-testing | x86_64 | testing-x86_64-build | /usr/share/devtools/pacman-testing.conf
staging/community-staging | x86_64 | staging-x86_64-build | /usr/share/devtools/pacman-staging.conf
multilib | x86_64 | multilib-build | /usr/share/devtools/pacman-multilib.conf
multilib-testing | x86_64 | multilib-testing-build | /usr/share/devtools/pacman-multilib-testing.conf
multilib-staging | x86_64 | multilib-staging-build | /usr/share/devtools/pacman-multilib-staging.conf###### You can use environment variable names in the options, they will be resolved.