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