Skip to content

Commit

Permalink
ci: test
Browse files Browse the repository at this point in the history
  • Loading branch information
horror-proton committed Dec 28, 2023
1 parent 374d1f0 commit f892cc8
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,27 @@ jobs:
actions: write

steps:
- name: Create user
run: |
chmod -R a+rw .
useradd arch -m -d /home/arch
echo "arch ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
sudo --set-home --user=arch mkdir -p ~arch/.cache/paru ~arch/.cache/ccache
- name: Cache packages
uses: actions/cache/restore@v3
id: packages-cache
with:
key: packages
path: |
/var/cache/pacman
/home/arch/.cache/paru
~/.cache/paru
- name: Upgrade system
run: |
pacman-key --init
pacman -Sy --needed --noconfirm archlinux-keyring
pacman -Syu --noconfirm --needed reflector git ccache github-cli pacman-contrib
sed -i '/E_ROOT/d' /usr/bin/makepkg
- name: Add unofficial user repositories
run: |
cat << _EOF >> /etc/pacman.conf
[archlinuxcn]
Server = https://repo.archlinuxcn.org/\$arch
Server = https://${{ vars.ALCN_MIRROR || repo.archlinuxcn.org }}/\$arch
_EOF
pacman -Sy --noconfirm && pacman -S --noconfirm archlinuxcn-keyring
Expand Down

0 comments on commit f892cc8

Please sign in to comment.