Compare commits

...

27 Commits

Author SHA1 Message Date
Husen 5b75404b8d Merge pull request #51 from heyhusen/release/v2.3.0
CI / Test (with Dockerfile) (push) Has been cancelled
CI / Publish OCI image (push) Has been cancelled
CI / Test (with prebuilt OCI Image) (push) Has been cancelled
CI / Release (push) Has been cancelled
chore: release v2.3.0
2025-05-27 07:35:54 +07:00
Husen ffd91d234b chore: release v2.3.0
Signed-off-by: Husen <hi@husen.id>
2025-05-27 07:32:47 +07:00
Husen 602fae3c61 Merge pull request #50 from dcelasun/fix/use-multilib-devel
Use archlinux/multilib-devel
2025-05-27 07:21:30 +07:00
Husen 6e5fdcc377 Merge pull request #49 from dcelasun/feat/copy-all-files
feat: Copy all package files, not just PKGBUILD
2025-05-27 07:14:27 +07:00
D. Can Celasun f0c37ce87f feat: Copy all package files, not just PKGBUILD
Also update CI workflow to test against a package with multiple source
files.

This fixes https://github.com/heyhusen/archlinux-package-action/issues/31
2025-05-26 12:43:52 +01:00
D. Can Celasun 22a870372c Use archlinux/multilib-devel
Otherwise packages depending on multilib stuff can't be built.
2025-05-25 20:16:43 +01:00
Husen ee5d6e807d Merge pull request #48 from cilki/main
Fix keyring update
2025-03-16 14:00:48 +07:00
Tyler Cook a93ac07315 Pacman --noconfirm 2025-02-28 20:29:46 -06:00
Tyler Cook cfcd11665c Run pacman as root 2025-02-28 20:24:03 -06:00
Tyler Cook 4076a2bcdb Fix keyring update 2025-02-28 20:07:50 -06:00
Husen 4de74c453f Merge pull request #47 from heyhusen/v2
V2
2024-09-08 16:01:44 +07:00
Husen f3d81c81b8 Merge pull request #46 from heyhusen/chore/update-v2-branch
Chore/update v2 branch
2024-09-08 15:57:58 +07:00
Husen e573cc1655 Merge pull request #45 from heyhusen/bugfix/cannot-pull-docker-image
Bugfix/cannot pull docker image
2024-09-08 15:52:38 +07:00
Husen e58b416119 Merge pull request #43 from heyhusen/release/v2.2.1
CI / Test (with Dockerfile) (push) Has been cancelled
CI / Publish OCI image (push) Has been cancelled
CI / Test (with prebuilt OCI Image) (push) Has been cancelled
CI / Release (push) Has been cancelled
chore: release v2.2.1
2024-02-19 00:12:16 +07:00
Husen 3f13112064 chore: release v2.2.1
Signed-off-by: Husen <hi@husen.id>
2024-02-19 00:10:06 +07:00
dependabot[bot] 8a82ee672c Merge pull request #39 from heyhusen/dependabot/github_actions/tj-actions/branch-names-8 2024-02-18 16:54:56 +00:00
dependabot[bot] 20d8479ebc chore(deps): bump tj-actions/branch-names from 7 to 8
Bumps [tj-actions/branch-names](https://github.com/tj-actions/branch-names) from 7 to 8.
- [Release notes](https://github.com/tj-actions/branch-names/releases)
- [Changelog](https://github.com/tj-actions/branch-names/blob/main/HISTORY.md)
- [Commits](https://github.com/tj-actions/branch-names/compare/v7...v8)

---
updated-dependencies:
- dependency-name: tj-actions/branch-names
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-18 16:52:52 +00:00
Husen 9fd24ca405 Merge pull request #42 from heyhusen/bugfix/cannot-pull-docker-image
fix: can't pull docker image
2024-02-18 23:47:58 +07:00
Husen f7376aba0b fix: can't pull docker image
Signed-off-by: Husen <hi@husen.id>
2024-02-18 23:45:23 +07:00
dependabot[bot] 5e383b10b5 Merge pull request #38 from hapakaien/dependabot/github_actions/docker/metadata-action-5 2023-09-17 13:50:30 +00:00
dependabot[bot] 8f5e879913 chore(deps): bump docker/metadata-action from 4 to 5
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 4 to 5.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Upgrade guide](https://github.com/docker/metadata-action/blob/master/UPGRADE.md)
- [Commits](https://github.com/docker/metadata-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 20:57:44 +00:00
dependabot[bot] 47fa19da38 Merge pull request #37 from hapakaien/dependabot/github_actions/actions/checkout-4 2023-09-10 09:38:16 +00:00
dependabot[bot] fd1dbe5048 chore(deps): bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 20:08:50 +00:00
dependabot[bot] c058d80ac5 Merge pull request #36 from hapakaien/dependabot/github_actions/tj-actions/branch-names-7 2023-05-18 06:53:24 +00:00
dependabot[bot] aa9be96cf9 chore(deps): bump tj-actions/branch-names from 6 to 7
Bumps [tj-actions/branch-names](https://github.com/tj-actions/branch-names) from 6 to 7.
- [Release notes](https://github.com/tj-actions/branch-names/releases)
- [Changelog](https://github.com/tj-actions/branch-names/blob/main/HISTORY.md)
- [Commits](https://github.com/tj-actions/branch-names/compare/v6...v7)

---
updated-dependencies:
- dependency-name: tj-actions/branch-names
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-15 21:01:12 +00:00
dependabot[bot] bc32e723f3 Merge pull request #30 from hapakaien/dependabot/github_actions/tj-actions/branch-names-6 2022-12-04 14:49:34 +00:00
dependabot[bot] f699bb5cff chore(deps): bump tj-actions/branch-names from 5 to 6
Bumps [tj-actions/branch-names](https://github.com/tj-actions/branch-names) from 5 to 6.
- [Release notes](https://github.com/tj-actions/branch-names/releases)
- [Changelog](https://github.com/tj-actions/branch-names/blob/main/HISTORY.md)
- [Commits](https://github.com/tj-actions/branch-names/compare/v5...v6)

---
updated-dependencies:
- dependency-name: tj-actions/branch-names
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-29 21:45:28 +00:00
6 changed files with 70 additions and 35 deletions
+21 -16
View File
@@ -17,29 +17,35 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Update action.yml to build locally - name: Update action.yml to build locally
run: | run: |
sed -i 's/.*image\:.*/ image\: \"Dockerfile\"/' action.yml sed -i 's/.*image\:.*/ image\: \"Dockerfile\"/' action.yml
cat action.yml cat action.yml
- name: Get sample PKGBUILD - name: Get sample package
run: wget https://github.com/hapakaien/plenti-bin/raw/f5ffaaee02a2119aa16f6b7a27e87e198e096b47/PKGBUILD run: |
mkdir visual-studio-code-bin
pushd visual-studio-code-bin
wget https://github.com/dcelasun/pkgbuilds/raw/ee68e4c19c40a0a36a50e289259fcfd94f43786d/visual-studio-code-bin/PKGBUILD
wget https://github.com/dcelasun/pkgbuilds/raw/ee68e4c19c40a0a36a50e289259fcfd94f43786d/visual-studio-code-bin/.SRCINFO
wget https://github.com/dcelasun/pkgbuilds/raw/ee68e4c19c40a0a36a50e289259fcfd94f43786d/visual-studio-code-bin/visual-studio-code-bin.install
wget https://github.com/dcelasun/pkgbuilds/raw/ee68e4c19c40a0a36a50e289259fcfd94f43786d/visual-studio-code-bin/visual-studio-code-bin.sh
popd
- name: Running test - name: Running test
uses: ./ uses: ./
with: with:
pkgver: '0.4.26' pkgver: '1.100.1'
pkgrel: 2 pkgrel: 1
updpkgsums: true updpkgsums: true
srcinfo: true srcinfo: true
path: 'visual-studio-code-bin'
- name: Show diff - name: Show diff
run: | run: |
ls -la ls -la
git diff PKGBUILD git diff
git diff .SRCINFO
publish: publish:
name: Publish OCI image name: Publish OCI image
@@ -49,7 +55,7 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
- 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 +66,7 @@ jobs:
- name: OCI metadata - name: OCI metadata
id: metadata id: metadata
uses: docker/metadata-action@v4 uses: docker/metadata-action@v5
with: with:
images: ghcr.io/${{ github.repository }} images: ghcr.io/${{ github.repository }}
tags: | tags: |
@@ -98,10 +104,10 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Get sample PKGBUILD - name: Get sample PKGBUILD
run: wget https://github.com/hapakaien/plenti-bin/raw/f5ffaaee02a2119aa16f6b7a27e87e198e096b47/PKGBUILD run: wget https://github.com/${{ github.repository_owner }}/plenti-bin/raw/f5ffaaee02a2119aa16f6b7a27e87e198e096b47/PKGBUILD
- 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'
@@ -126,8 +132,7 @@ jobs:
- name: Show diff - name: Show diff
run: | run: |
ls -la ls -la
git diff PKGBUILD git diff
git diff .SRCINFO
release: release:
name: Release name: Release
@@ -137,11 +142,11 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Get branch/tag names - name: Get branch/tag names
id: branch-name id: branch-name
uses: tj-actions/branch-names@v5 uses: tj-actions/branch-names@v8
with: with:
strip_tag_prefix: "v" strip_tag_prefix: "v"
+20 -1
View File
@@ -7,6 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [2.3.0] - 2025-05-27
### Added
- Copy all package files, not just PKGBUILD - by @dcelasun
- Multilib support - by @dcelasun
### Fixed
- Keryring is not updated - by @cilki
## [2.2.1] - 2024-02-19
### Fixed
- Can't pull docker image, so sorry guys
## [2.2.0] - 2022-08-05 ## [2.2.0] - 2022-08-05
### Added ### Added
@@ -98,7 +115,9 @@ 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.2.0...HEAD [Unreleased]: https://github.com/hapakaien/archlinux-package-action/compare/v2.3.0...HEAD
[2.3.0]: https://github.com/hapakaien/archlinux-package-action/compare/v2.2.1...v2.3.0
[2.2.1]: https://github.com/hapakaien/archlinux-package-action/compare/v2.2.0...v2.2.1
[2.2.0]: https://github.com/hapakaien/archlinux-package-action/compare/v2.1.1...v2.2.0 [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.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.1.0]: https://github.com/hapakaien/archlinux-package-action/compare/v2.0.3...v2.1.0
+1 -1
View File
@@ -1,5 +1,5 @@
# Base image # Base image
FROM docker.io/library/archlinux:base-devel FROM docker.io/library/archlinux:multilib-devel
# Install dependencies # Install dependencies
RUN pacman -Syu --needed --noconfirm pacman-contrib namcap git RUN pacman -Syu --needed --noconfirm pacman-contrib namcap git
+5 -5
View File
@@ -1,6 +1,6 @@
# Arch Linux's package tools action # Arch Linux's package tools action
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/hapakaien/archlinux-package-action/CI?label=CI&style=flat-square)](https://github.com/hapakaien/archlinux-package-action/actions) [![GitHub release (latest by date)](https://img.shields.io/github/v/release/hapakaien/archlinux-package-action?style=flat-square)](https://github.com/hapakaien/archlinux-package-action/releases) [![GitHub](https://img.shields.io/github/license/hapakaien/archlinux-package-action?style=flat-square)](./LICENSE) [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/heyhusen/archlinux-package-action/main.yml?style=flat-square&label=CI)](https://github.com/heyhusen/archlinux-package-action/actions) [![GitHub release (latest by date)](https://img.shields.io/github/v/release/heyhusen/archlinux-package-action?style=flat-square)](https://github.com/heyhusen/archlinux-package-action/releases) [![GitHub](https://img.shields.io/github/license/heyhusen/archlinux-package-action?style=flat-square)](./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:
@@ -54,7 +54,7 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Validate package - name: Validate package
uses: hapakaien/archlinux-package-action@v2 uses: heyhusen/archlinux-package-action@v2
``` ```
#### 2. Only generate .SRCINFO #### 2. Only generate .SRCINFO
@@ -74,7 +74,7 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Validate package - name: Validate package
uses: hapakaien/archlinux-package-action@v2 uses: heyhusen/archlinux-package-action@v2
with: with:
flags: '' flags: ''
namcap: false namcap: false
@@ -98,7 +98,7 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Validate package - name: Validate package
uses: hapakaien/archlinux-package-action@v2 uses: heyhusen/archlinux-package-action@v2
with: with:
flags: '' flags: ''
namcap: false namcap: false
@@ -122,7 +122,7 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Validate package - name: Validate package
uses: hapakaien/archlinux-package-action@v2 uses: heyhusen/archlinux-package-action@v2
with: with:
path: package path: package
flags: '-si --noconfirm' flags: '-si --noconfirm'
+4 -4
View File
@@ -1,7 +1,7 @@
# https://help.github.com/en/articles/metadata-syntax-for-github-actions # https://help.github.com/en/articles/metadata-syntax-for-github-actions
name: "Arch Linux's package action" name: "Arch Linux's package action"
description: "GitHub Action to run Arch Linux's package tools" description: "GitHub Action to run Arch Linux's package tools"
author: 'hapakaien' author: 'heyhusen'
branding: branding:
icon: 'package' icon: 'package'
color: 'blue' color: 'blue'
@@ -39,14 +39,14 @@ inputs:
description: 'Resolve dependencies using paru' description: 'Resolve dependencies using paru'
default: 'false' default: 'false'
required: false required: false
update_archlinux_keyring: archlinux_keyring:
description: 'Update archlinux-keyring' description: 'Update archlinux-keyring'
default: 'true' default: 'true'
required: false required: false
runs: runs:
using: 'docker' using: 'docker'
image: 'docker://ghcr.io/hapakaien/archlinux-package-action:2' image: Dockerfile
args: args:
- ${{ inputs.path }} - ${{ inputs.path }}
- ${{ inputs.pkgver }} - ${{ inputs.pkgver }}
@@ -56,4 +56,4 @@ runs:
- ${{ inputs.flags }} - ${{ inputs.flags }}
- ${{ inputs.namcap }} - ${{ inputs.namcap }}
- ${{ inputs.aur }} - ${{ inputs.aur }}
- ${{ inputs.update_archlinux_keyring }} - ${{ inputs.archlinux_keyring }}
+17 -6
View File
@@ -2,21 +2,30 @@
set -e set -e
# Set path # Set path
WORKPATH=$GITHUB_WORKSPACE/$INPUT_PATH
HOME=/home/builder HOME=/home/builder
echo "::group::Copying files from $WORKPATH to $HOME/gh-action" echo "::group::Copying files from $GITHUB_WORKSPACE to $HOME/gh-action"
# Set path permision # Set path permision
cd $HOME cd $HOME
mkdir gh-action mkdir gh-action
cd gh-action cd gh-action
cp -rfv "$GITHUB_WORKSPACE"/.git ./
cp -fv "$WORKPATH"/PKGBUILD ./ # If there is a custom path, we need to copy the whole repository
# because we run "git diff" at several stages and without the entire
# tree the output will be incorrect.
if [[ -n $INPUT_PATH ]]; then
cp -rTfv "$GITHUB_WORKSPACE"/ ./
cd $INPUT_PATH
else
# Without a custom path though, we can just grab the .git directory and the PKGBUILD.
cp -rfv "$GITHUB_WORKSPACE"/.git ./
cp -fv "$GITHUB_WORKSPACE"/PKGBUILD ./
fi
echo "::endgroup::" echo "::endgroup::"
# Update archlinux-keyring # Update archlinux-keyring
if [[ $INPUT_ARCHLINUX_KEYRING == true ]]; then if [[ $INPUT_ARCHLINUX_KEYRING == true ]]; then
echo "::group::Updating archlinux-keyring" echo "::group::Updating archlinux-keyring"
pacman -S archlinux-keyring sudo pacman -Syu --noconfirm archlinux-keyring
echo "::endgroup::" echo "::endgroup::"
fi fi
@@ -28,7 +37,7 @@ if [[ -n $INPUT_PKGVER ]]; then
echo "::endgroup::" echo "::endgroup::"
fi fi
# Update pkgver # Update pkgrel
if [[ -n $INPUT_PKGREL ]]; then if [[ -n $INPUT_PKGREL ]]; then
echo "::group::Updating pkgrel on PKGBUILD" echo "::group::Updating pkgrel on PKGBUILD"
sed -i "s:^pkgrel=.*$:pkgrel=$INPUT_PKGREL:g" PKGBUILD sed -i "s:^pkgrel=.*$:pkgrel=$INPUT_PKGREL:g" PKGBUILD
@@ -74,6 +83,8 @@ if [[ -n $INPUT_FLAGS ]]; then
echo "::endgroup::" echo "::endgroup::"
fi fi
WORKPATH=$GITHUB_WORKSPACE/$INPUT_PATH
WORKPATH=${WORKPATH%/} # Remove trailing slash if $INPUT_PATH is empty
echo "::group::Copying files from $HOME/gh-action to $WORKPATH" echo "::group::Copying files from $HOME/gh-action to $WORKPATH"
sudo cp -fv PKGBUILD "$WORKPATH"/PKGBUILD sudo cp -fv PKGBUILD "$WORKPATH"/PKGBUILD
if [[ -e .SRCINFO ]]; then if [[ -e .SRCINFO ]]; then