Install package before checkout the repo

This commit is contained in:
2026-02-11 16:55:22 +00:00
parent a48ada1378
commit 02306a923c

View File

@@ -13,12 +13,13 @@ jobs:
contents: write contents: write
steps: steps:
- name: Setup packages
run: pacman -Sy --noconfirm git pacman-contrib sudo nodejs
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup build user - name: Setup build user
run: | run: |
pacman -Sy --noconfirm git pacman-contrib sudo
useradd -m builduser useradd -m builduser
echo "builduser ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/builduser echo "builduser ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/builduser
chmod 0440 /etc/sudoers.d/builduser chmod 0440 /etc/sudoers.d/builduser