Pikaur is broken, use Yay instead
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Davide Depau 2020-04-18 05:37:15 +02:00
parent 7afcb8587f
commit d9d6b0f886
Signed by: depau
GPG Key ID: C7D999B6A55EFE86
1 changed files with 5 additions and 5 deletions

View File

@ -16,17 +16,17 @@ fi
if [ "$PLUGIN_INSTALL" != "" ]; then
echo "Installing packages before build: $PLUGIN_INSTALL"
pikaur -Syu --noprogressbar --noconfirm $(echo "$PLUGIN_INSTALL" | tr ',' ' ')
yay -Syu --noprogressbar --noconfirm --mflags=-A $(echo "$PLUGIN_INSTALL" | tr ',' ' ')
fi
if [ "$PLUGIN_INSTALL_OUTPUTS" != "no" ] && [ -n "$(ls -A "$OUTDIR")" ]; then
echo "Installing previous build outputs"
pikaur -U --noprogressbar --noconfirm "$OUTDIR"/*
yay -U --noprogressbar --noconfirm "$OUTDIR"/*
fi
# Clone package repo
if [ "$PLUGIN_AUR" != "" ]; then
echo "Building AUR package $PLUGIN_AUR"
echo "Building AUR package: $PLUGIN_AUR"
git clone "$AUR_URL/$PLUGIN_AUR.git" package
cd package
elif [ "$PLUGIN_REPO" != "" ]; then
@ -44,9 +44,9 @@ if [ "$PLUGIN_PKGBUILD" != "" ]; then
fi
echo "Running build"
pikaur -P --noprogressbar --noconfirm --mflags=--ignorearch "$PKGBUILD"
makepkg -sAc --skippgpcheck --noconfirm --noprogressbar "$PKGBUILD"
echo "Moving packages to output directory: $OUTDIR"
mv ~/.cache/pikaur/pkg/* "$OUTDIR/"
mv *.pkg.* "$OUTDIR/"
sudo chown -R root:root "$DRONE_WORKSPACE_BASE"