Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2d9dafa60e | |||
| ae967066cb | |||
| cf8509924b | |||
| 1a92d6efa7 | |||
| 8dc2e4d3e8 | |||
| 37bda140be | |||
| f710e16a35 | |||
| 7118f1dd24 | |||
| fda333bd87 | |||
| 80d76aa524 | |||
| 77f37ad6f1 | |||
| c3e3ab0325 | |||
| b257397a15 | |||
| a4f0a491d0 |
@@ -17,7 +17,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2.4.0
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Update action.yml to build locally
|
||||
run: |
|
||||
@@ -49,7 +49,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2.4.0
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Log in to ghcr.io
|
||||
uses: redhat-actions/podman-login@v1
|
||||
@@ -60,7 +60,7 @@ jobs:
|
||||
|
||||
- name: OCI metadata
|
||||
id: metadata
|
||||
uses: docker/metadata-action@v3
|
||||
uses: docker/metadata-action@v4
|
||||
with:
|
||||
images: ghcr.io/${{ github.repository }}
|
||||
tags: |
|
||||
@@ -98,7 +98,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2.4.0
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Get sample PKGBUILD
|
||||
run: wget https://github.com/hapakaien/plenti-bin/raw/f5ffaaee02a2119aa16f6b7a27e87e198e096b47/PKGBUILD
|
||||
@@ -131,7 +131,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2.4.0
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Get branch/tag names
|
||||
id: branch-name
|
||||
|
||||
+15
-1
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [2.1.1] - 2022-05-15
|
||||
|
||||
### Fixed
|
||||
|
||||
- Wrong conditional using paru
|
||||
|
||||
## [2.1.0] - 2022-05-05
|
||||
|
||||
### Added
|
||||
|
||||
- Option to resolve deps using paru (from AUR)
|
||||
|
||||
## [2.0.3] - 2022-02-02
|
||||
|
||||
### Fixed
|
||||
@@ -79,7 +91,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
- Initial release
|
||||
|
||||
[Unreleased]: https://github.com/hapakaien/archlinux-package-action/compare/v2.0.3...HEAD
|
||||
[Unreleased]: https://github.com/hapakaien/archlinux-package-action/compare/v2.1.1...HEAD
|
||||
[2.1.1]: https://github.com/hapakaien/archlinux-package-action/compare/v2.1.0...v2.1.1
|
||||
[2.1.0]: https://github.com/hapakaien/archlinux-package-action/compare/v2.0.3...v2.1.0
|
||||
[2.0.3]: https://github.com/hapakaien/archlinux-package-action/compare/v2.0.2...v2.0.3
|
||||
[2.0.2]: https://github.com/hapakaien/archlinux-package-action/compare/v2.0.1...v2.0.2
|
||||
[2.0.1]: https://github.com/hapakaien/archlinux-package-action/compare/v2.0.0...v2.0.1
|
||||
|
||||
@@ -10,6 +10,10 @@ RUN useradd -m builder && \
|
||||
WORKDIR /home/builder
|
||||
USER builder
|
||||
|
||||
# Install paru
|
||||
RUN git clone https://aur.archlinux.org/paru-bin.git
|
||||
RUN cd paru-bin && makepkg -si --noconfirm
|
||||
|
||||
# Copy files
|
||||
COPY LICENSE README.md /
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
@@ -21,15 +21,16 @@ Here's what this action can do:
|
||||
|
||||
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. |
|
||||
| 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 |
|
||||
|
||||
### Examples
|
||||
|
||||
|
||||
@@ -35,6 +35,10 @@ inputs:
|
||||
description: 'Validate package with namcap'
|
||||
default: 'true'
|
||||
required: false
|
||||
aur:
|
||||
description: 'Resolve dependencies using paru'
|
||||
default: 'false'
|
||||
required: false
|
||||
|
||||
runs:
|
||||
using: 'docker'
|
||||
@@ -47,3 +51,4 @@ runs:
|
||||
- ${{ inputs.srcinfo }}
|
||||
- ${{ inputs.flags }}
|
||||
- ${{ inputs.namcap }}
|
||||
- ${{ inputs.aur }}
|
||||
|
||||
+9
-1
@@ -40,7 +40,7 @@ fi
|
||||
# Generate .SRCINFO
|
||||
if [[ $INPUT_SRCINFO == true ]]; then
|
||||
echo "::group::Generating new .SRCINFO based on PKGBUILD"
|
||||
makepkg --printsrcinfo > .SRCINFO
|
||||
makepkg --printsrcinfo >.SRCINFO
|
||||
git diff .SRCINFO
|
||||
echo "::endgroup::"
|
||||
fi
|
||||
@@ -52,6 +52,14 @@ if [[ $INPUT_NAMCAP == true ]]; then
|
||||
echo "::endgroup::"
|
||||
fi
|
||||
|
||||
# Install depends using paru from aur
|
||||
if [[ $INPUT_AUR == true ]]; then
|
||||
echo "::group::Installing depends using paru"
|
||||
source PKGBUILD
|
||||
paru -Syu --removemake --needed --noconfirm "${depends[@]}" "${makedepends[@]}"
|
||||
echo "::endgroup::"
|
||||
fi
|
||||
|
||||
# Run makepkg
|
||||
if [[ -n $INPUT_FLAGS ]]; then
|
||||
echo "::group::Running makepkg with flags"
|
||||
|
||||
Reference in New Issue
Block a user