feat: 🎸 Add option to resolve deps using paru (from AUR)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -35,6 +35,10 @@ inputs:
|
|||||||
description: 'Validate package with namcap'
|
description: 'Validate package with namcap'
|
||||||
default: 'true'
|
default: 'true'
|
||||||
required: false
|
required: false
|
||||||
|
aur:
|
||||||
|
description: 'Resolve dependencies using AUR'
|
||||||
|
default: 'false'
|
||||||
|
required: false
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: 'docker'
|
using: 'docker'
|
||||||
@@ -47,3 +51,4 @@ runs:
|
|||||||
- ${{ inputs.srcinfo }}
|
- ${{ inputs.srcinfo }}
|
||||||
- ${{ inputs.flags }}
|
- ${{ inputs.flags }}
|
||||||
- ${{ inputs.namcap }}
|
- ${{ inputs.namcap }}
|
||||||
|
- ${{ inputs.aur }}
|
||||||
|
|||||||
@@ -52,6 +52,14 @@ if [[ $INPUT_NAMCAP == true ]]; then
|
|||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Install depends using paru from aur
|
||||||
|
if [[ -n $INPUT_AUR ]]; 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