diff --git a/.github/workflows/archlinux-package.yml b/.github/workflows/archlinux-package.yml index e9741f4..41999d8 100644 --- a/.github/workflows/archlinux-package.yml +++ b/.github/workflows/archlinux-package.yml @@ -21,9 +21,18 @@ jobs: steps: - uses: actions/checkout@v3 - name: Install Packages via Pacman - run: pacman -Sy; pacman --noconfirm -S base-devel pango glib2 librsvg unzip zip + run: | + pacman -Sy + pacman --noconfirm -S base-devel pango glib2 librsvg unzip zip fakeroot + useradd -m builder + passwd -d builder + echo 'builder ALL=(ALL) NOPASSWD: ALL' | sudo tee /etc/sudoers.d/builder + sudo chown -R builder:builder $GITHUB_WORKSPACE + - name: Make Package - run: cd package/archlinux; bash build.sh + run: | + cd package/archlinux + sudo -u builder bash build.sh - name: Upload zst file to the release run: | cd ./build