Skip to content

Commit 9e098c8

Browse files
committed
run makepkg as user
1 parent c60cfc9 commit 9e098c8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/archlinux.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ jobs:
4141
4242
container:
4343
image: archlinux:latest
44-
options: --privileged
4544

4645
steps:
4746
- uses: actions/checkout@v4
@@ -81,13 +80,21 @@ jobs:
8180
8281
- name: Install development dependencies
8382
run: |
83+
useradd build
84+
8485
pacman -S --needed --noconfirm $(cat scripts/docs/en/deps/arch.md | grep -v -- 'makepkg|' )
8586
cat scripts/docs/en/deps/arch.md | grep -oP '^makepkg\|\K.*' | while read REPLY; \
8687
do \
8788
DIR=$(mktemp -d) ;\
8889
git clone https://aur.archlinux.org/$REPLY.git $DIR ;\
8990
pushd $DIR ;\
90-
yes|makepkg -si ;\
91+
92+
chmod a+x .
93+
chmod a+rw -R .
94+
95+
yes | su -s /usr/bin/makepkg - build ;\
96+
packman -U *.zst
97+
9198
popd ;\
9299
rm -rf $DIR ;\
93100
done

0 commit comments

Comments
 (0)