From bcaa036b892a3070fb18ace1a05e33717ea19304 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Tue, 24 Feb 2026 16:40:05 +0800 Subject: Update AUR workflow to use makepkg and Arch Linux container --- .github/workflows/publish-aur.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/publish-aur.yml b/.github/workflows/publish-aur.yml index 87c4f49..addc9e3 100644 --- a/.github/workflows/publish-aur.yml +++ b/.github/workflows/publish-aur.yml @@ -16,6 +16,8 @@ on: jobs: aur: runs-on: ubuntu-latest + container: + image: archlinux:latest if: | github.event_name == 'workflow_dispatch' && github.event.inputs.tag != '' || startsWith(github.ref, 'refs/tags/v') @@ -33,7 +35,7 @@ jobs: ssh-keyscan -t ed25519 aur.archlinux.org >> ~/.ssh/known_hosts - name: Install makepkg - run: sudo apt-get update && sudo apt-get install -y archlinux-keyring pkgbuild-utils + run: sudo apt-get update && sudo apt-get install -y makepkg archlinux-keyring - name: Clone AUR repository and update PKGBUILD run: | @@ -47,7 +49,7 @@ jobs: fi VERSION="${TAG#v}" sed -i "s/^pkgver=.*/pkgver=${VERSION}/" PKGBUILD - mksrcinfo --printsrcinfo > .SRCINFO + makepkg --printsrcinfo > .SRCINFO git add PKGBUILD .SRCINFO if git diff --cached --quiet; then echo "No changes to commit" -- cgit v1.2.3-70-g09d2