Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5b75404b8d | |||
| ffd91d234b | |||
| 602fae3c61 | |||
| 6e5fdcc377 | |||
| f0c37ce87f | |||
| 22a870372c | |||
| ee5d6e807d | |||
| a93ac07315 | |||
| cfcd11665c | |||
| 4076a2bcdb | |||
| 4de74c453f | |||
| f3d81c81b8 | |||
| e573cc1655 |
@@ -24,22 +24,28 @@ jobs:
|
|||||||
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/${{ github.repository_owner }}/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
|
||||||
@@ -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
|
||||||
|
|||||||
+14
-1
@@ -7,6 +7,17 @@ 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
|
## [2.2.1] - 2024-02-19
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
@@ -104,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
@@ -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
|
||||||
|
|||||||
+3
-3
@@ -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/heyhusen/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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user