Skip to content

Commit

Permalink
workflow: fix (hopefully) AUR build
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni500github committed Dec 21, 2024
1 parent 37f292e commit 2d1b249
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,12 @@ jobs:

- name: Install the packages
run: pacman -Syyu git sudo base-devel fakeroot pkgconf tree neofetch --noconfirm --needed
- name: get /etc/sudoers

- name: Create a dedicated build user
run: |
sed -i "s#root ALL=(ALL:ALL) ALL#root ALL=(ALL:ALL) NOPASSWD: ALL\nnobody ALL=(ALL:ALL) NOPASSWD: ALL#g" /etc/sudoers
cat /etc/sudoers
useradd -m -s /bin/bash builduser
echo "builduser ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
- name: get /etc/makepkg.conf
run: |
sed -i "s#purge debug lto#purge debug lto#" /etc/makepkg.conf
Expand All @@ -95,9 +96,9 @@ jobs:
- name: Build and install using makepkg
run: |
git clone https://aur.archlinux.org/customfetch-git.git
chown -R nobody customfetch-git
chown -R builduser customfetch-git
cd customfetch-git
sudo -u nobody makepkg -si --noconfirm
sudo -u builduser makepkg -si --noconfirm
#- name: Setup SSH session
# uses: mxschmitt/action-tmate@v3
Expand Down

0 comments on commit 2d1b249

Please sign in to comment.