Compare commits
21 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0f306e414a | |||
| f9ff68181b | |||
| 94f928c5df | |||
| 099605a64c | |||
| d3aea41d02 | |||
| 618a0ba862 | |||
| c9118ad67a | |||
| 2d9dafa60e | |||
| ae967066cb | |||
| cf8509924b | |||
| 1a92d6efa7 | |||
| 8dc2e4d3e8 | |||
| 37bda140be | |||
| f710e16a35 | |||
| 7118f1dd24 | |||
| fda333bd87 | |||
| 80d76aa524 | |||
| 77f37ad6f1 | |||
| c3e3ab0325 | |||
| b257397a15 | |||
| a4f0a491d0 |
@@ -17,7 +17,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2.4.0
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Update action.yml to build locally
|
- name: Update action.yml to build locally
|
||||||
run: |
|
run: |
|
||||||
@@ -49,7 +49,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2.4.0
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Log in to ghcr.io
|
- name: Log in to ghcr.io
|
||||||
uses: redhat-actions/podman-login@v1
|
uses: redhat-actions/podman-login@v1
|
||||||
@@ -60,7 +60,7 @@ jobs:
|
|||||||
|
|
||||||
- name: OCI metadata
|
- name: OCI metadata
|
||||||
id: metadata
|
id: metadata
|
||||||
uses: docker/metadata-action@v3
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
images: ghcr.io/${{ github.repository }}
|
images: ghcr.io/${{ github.repository }}
|
||||||
tags: |
|
tags: |
|
||||||
@@ -98,7 +98,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2.4.0
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Get sample PKGBUILD
|
- name: Get sample PKGBUILD
|
||||||
run: wget https://github.com/hapakaien/plenti-bin/raw/f5ffaaee02a2119aa16f6b7a27e87e198e096b47/PKGBUILD
|
run: wget https://github.com/hapakaien/plenti-bin/raw/f5ffaaee02a2119aa16f6b7a27e87e198e096b47/PKGBUILD
|
||||||
@@ -106,7 +106,13 @@ jobs:
|
|||||||
- name: Update action.yml to use edge tagged container image
|
- name: Update action.yml to use edge tagged container image
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
run: |
|
run: |
|
||||||
sed -i 's/.*image\:.*/ image\: \"docker\:\/\/ghcr.io\/${{ github.repository_owner }}\/${{ github.event.repository.name }}\:edge\"/' action.yml
|
REPOSITORY_OWNER=${{ github.repository_owner }}
|
||||||
|
REPOSITORY_OWNER=$(echo $REPOSITORY_OWNER | tr '[:upper:]' '[:lower:]')
|
||||||
|
|
||||||
|
REPOSITORY_NAME=${{ github.event.repository.name }}
|
||||||
|
REPOSITORY_NAME=$(echo $REPOSITORY_NAME | tr '[:upper:]' '[:lower:]')
|
||||||
|
|
||||||
|
sed -i "s/.*image\:.*/ image\: \"docker\:\/\/ghcr.io\/${REPOSITORY_OWNER}\/${REPOSITORY_NAME}\:edge\"/" action.yml
|
||||||
cat action.yml
|
cat action.yml
|
||||||
|
|
||||||
- name: Running test
|
- name: Running test
|
||||||
@@ -131,7 +137,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2.4.0
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Get branch/tag names
|
- name: Get branch/tag names
|
||||||
id: branch-name
|
id: branch-name
|
||||||
|
|||||||
+23
-1
@@ -7,6 +7,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [2.2.0] - 2022-08-05
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Option to update archlinux-keyring - by @ReenigneArcher
|
||||||
|
- Make repository name lowercase - by @ReenigneArcher
|
||||||
|
|
||||||
|
## [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) - by @kamack38
|
||||||
|
|
||||||
## [2.0.3] - 2022-02-02
|
## [2.0.3] - 2022-02-02
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
@@ -79,7 +98,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
- Initial release
|
- 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.2.0...HEAD
|
||||||
|
[2.2.0]: https://github.com/hapakaien/archlinux-package-action/compare/v2.1.1...v2.2.0
|
||||||
|
[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.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.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
|
[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
|
WORKDIR /home/builder
|
||||||
USER 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 files
|
||||||
COPY LICENSE README.md /
|
COPY LICENSE README.md /
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
[](https://github.com/hapakaien/archlinux-package-action/actions) [](https://github.com/hapakaien/archlinux-package-action/releases) [](./LICENSE)
|
[](https://github.com/hapakaien/archlinux-package-action/actions) [](https://github.com/hapakaien/archlinux-package-action/releases) [](./LICENSE)
|
||||||
|
|
||||||
This action allows running tools needed for creating Arch Linux (and AUR) package.
|
This action allows running tools needed for creating Arch Linux (and AUR) package.
|
||||||
Here's what this action can do:
|
Here's what this action can do:
|
||||||
|
|
||||||
- Update `pkgver`, `pkgrel`, or checksums on PKGBUILD file
|
- Update `pkgver`, `pkgrel`, or checksums on PKGBUILD file
|
||||||
@@ -21,15 +21,17 @@ Here's what this action can do:
|
|||||||
|
|
||||||
Following inputs can be used as `step.with` keys
|
Following inputs can be used as `step.with` keys
|
||||||
|
|
||||||
| Name | Type | Default | Required | Description |
|
| Name | Type | Default | Required | Description |
|
||||||
|-------------------|-----------|-------------------------------|-----------|---------------------------------------|
|
| -------------------------- | ------- | ------------------ | -------- | -------------------------------------------------------------------------------- |
|
||||||
| `path` | String | | `false` | Path where PKGBUILD is located. This path always located under $GITHUB_WORKSPACE |
|
| `path` | String | | `false` | Path where PKGBUILD is located. This path always located under $GITHUB_WORKSPACE |
|
||||||
| `pkgver` | String | | `false` | Update `pkgver` on your PKGBUILD |
|
| `pkgver` | String | | `false` | Update `pkgver` on your PKGBUILD |
|
||||||
| `pkgrel` | Integer | | `false` | Update `pkgrel` on your PKGBUILD |
|
| `pkgrel` | Integer | | `false` | Update `pkgrel` on your PKGBUILD |
|
||||||
| `updpkgsums` | Boolean | `false` | `false` | Update checksums on your PKGBUILD |
|
| `updpkgsums` | Boolean | `false` | `false` | Update checksums on your PKGBUILD |
|
||||||
| `srcinfo` | Boolean | `false` | `false` | Generate new .SRCINFO |
|
| `srcinfo` | Boolean | `false` | `false` | Generate new .SRCINFO |
|
||||||
| `namcap` | Boolean | `true` | `false` | Validate PKGBUILD |
|
| `namcap` | Boolean | `true` | `false` | Validate PKGBUILD |
|
||||||
| `flags` | String | `-cfs --noconfirm` | `false` | Flags after `makepkg` command. Leave this empty will disable this command. |
|
| `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
|
### Examples
|
||||||
|
|
||||||
|
|||||||
+10
@@ -35,6 +35,14 @@ inputs:
|
|||||||
description: 'Validate package with namcap'
|
description: 'Validate package with namcap'
|
||||||
default: 'true'
|
default: 'true'
|
||||||
required: false
|
required: false
|
||||||
|
aur:
|
||||||
|
description: 'Resolve dependencies using paru'
|
||||||
|
default: 'false'
|
||||||
|
required: false
|
||||||
|
update_archlinux_keyring:
|
||||||
|
description: 'Update archlinux-keyring'
|
||||||
|
default: 'true'
|
||||||
|
required: false
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: 'docker'
|
using: 'docker'
|
||||||
@@ -47,3 +55,5 @@ runs:
|
|||||||
- ${{ inputs.srcinfo }}
|
- ${{ inputs.srcinfo }}
|
||||||
- ${{ inputs.flags }}
|
- ${{ inputs.flags }}
|
||||||
- ${{ inputs.namcap }}
|
- ${{ inputs.namcap }}
|
||||||
|
- ${{ inputs.aur }}
|
||||||
|
- ${{ inputs.update_archlinux_keyring }}
|
||||||
|
|||||||
+16
-1
@@ -13,6 +13,13 @@ cp -rfv "$GITHUB_WORKSPACE"/.git ./
|
|||||||
cp -fv "$WORKPATH"/PKGBUILD ./
|
cp -fv "$WORKPATH"/PKGBUILD ./
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
||||||
|
# Update archlinux-keyring
|
||||||
|
if [[ $INPUT_ARCHLINUX_KEYRING == true ]]; then
|
||||||
|
echo "::group::Updating archlinux-keyring"
|
||||||
|
pacman -S archlinux-keyring
|
||||||
|
echo "::endgroup::"
|
||||||
|
fi
|
||||||
|
|
||||||
# Update pkgver
|
# Update pkgver
|
||||||
if [[ -n $INPUT_PKGVER ]]; then
|
if [[ -n $INPUT_PKGVER ]]; then
|
||||||
echo "::group::Updating pkgver on PKGBUILD"
|
echo "::group::Updating pkgver on PKGBUILD"
|
||||||
@@ -40,7 +47,7 @@ fi
|
|||||||
# Generate .SRCINFO
|
# Generate .SRCINFO
|
||||||
if [[ $INPUT_SRCINFO == true ]]; then
|
if [[ $INPUT_SRCINFO == true ]]; then
|
||||||
echo "::group::Generating new .SRCINFO based on PKGBUILD"
|
echo "::group::Generating new .SRCINFO based on PKGBUILD"
|
||||||
makepkg --printsrcinfo > .SRCINFO
|
makepkg --printsrcinfo >.SRCINFO
|
||||||
git diff .SRCINFO
|
git diff .SRCINFO
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
fi
|
fi
|
||||||
@@ -52,6 +59,14 @@ if [[ $INPUT_NAMCAP == true ]]; then
|
|||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
fi
|
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
|
# Run makepkg
|
||||||
if [[ -n $INPUT_FLAGS ]]; then
|
if [[ -n $INPUT_FLAGS ]]; then
|
||||||
echo "::group::Running makepkg with flags"
|
echo "::group::Running makepkg with flags"
|
||||||
|
|||||||
Reference in New Issue
Block a user