From a01b74a2a3f5c7e172a9ba82515f797e3f1c4fc6 Mon Sep 17 00:00:00 2001 From: Vomitblood Date: Mon, 25 Mar 2024 13:03:52 +0800 Subject: [PATCH] update CI --- .github/workflows/build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 040e0e0..83a56d5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,10 +17,15 @@ jobs: - uses: actions/checkout@v2 - name: Install dependencies - run: pacman -Syu --noconfirm base-devel rust + run: | + pacman -Syu --noconfirm base-devel rust + useradd builder -m -G wheel + echo 'builder ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers - name: Build Arch package - run: makepkg -sf --noconfirm + run: | + chown -R builder:builder . + sudo -u builder bash -c "makepkg -sf --noconfirm" - name: Upload Arch package uses: actions/upload-artifact@v2