From f55d224fab320f0bf37e8ed2d8fa116b251bda74 Mon Sep 17 00:00:00 2001 From: Daniel Dada Date: Tue, 9 Dec 2025 00:55:21 +0300 Subject: [PATCH] ci: add pkgbuild-git tester --- .github/workflows/Test PKGBUILD-git.yml | 45 +++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/Test PKGBUILD-git.yml diff --git a/.github/workflows/Test PKGBUILD-git.yml b/.github/workflows/Test PKGBUILD-git.yml new file mode 100644 index 0000000..619a478 --- /dev/null +++ b/.github/workflows/Test PKGBUILD-git.yml @@ -0,0 +1,45 @@ +name: Test PKGBUILD-git + +on: + push: + branch: master + pull_request: + branches: master + +jobs: + build: + runs-on: ubuntu-latest + container: archlinux:latest + + steps: + - name: Setup Arch + run: | + pacman -Sy --noconfirm --needed base-devel git sudo + useradd -m builder + echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers + + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set permissions + run: chown -R builder:builder . + + - name: Build + run: | + sudo -u builder bash -c ' + cd AUR + makepkg -p PKGBUILD-git -si --noconfirm + ' + + - name: Test + run: | + clrsync_cli --help + pacman -Ql clrsync-git + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: clrsync-git + path: AUR/*.pkg.tar.zst \ No newline at end of file