From d15e8be6704f7bcb73c7138191611514dfff3ef8 Mon Sep 17 00:00:00 2001 From: meshya Date: Wed, 29 May 2024 01:28:25 +0330 Subject: [PATCH] edit archlinux package build workflow file --- .github/workflows/archlinux-package.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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