Fix tests: correct CachyOS and chaotic-aur mirror URLs, install keyrings properly
This commit is contained in:
+18
-10
@@ -18,25 +18,33 @@ jobs:
|
||||
|
||||
- name: Set up CachyOS repo
|
||||
run: |
|
||||
# Add CachyOS mirrorlist
|
||||
printf '%s\n' \
|
||||
'Server = https://mirror.cachyos.org/$repo/$arch' \
|
||||
> /etc/pacman.d/cachyos-mirrorlist
|
||||
# Import CachyOS key
|
||||
pacman-key --recv-keys F3B607488DB35A47 --keyserver keyserver.ubuntu.com
|
||||
pacman-key --lsign-key F3B607488DB35A47
|
||||
|
||||
# Install keyring and mirrorlist packages
|
||||
pacman -U --noconfirm \
|
||||
'https://mirror.cachyos.org/repo/x86_64/cachyos/cachyos-keyring-20240331-1-any.pkg.tar.zst' \
|
||||
'https://mirror.cachyos.org/repo/x86_64/cachyos/cachyos-mirrorlist-27-1-any.pkg.tar.zst'
|
||||
|
||||
# Add CachyOS repo to pacman.conf
|
||||
printf '\n[cachyos]\nSigLevel = Optional TrustAll\nInclude = /etc/pacman.d/cachyos-mirrorlist\n' \
|
||||
printf '\n[cachyos]\nInclude = /etc/pacman.d/cachyos-mirrorlist\n' \
|
||||
>> /etc/pacman.conf
|
||||
|
||||
pacman -Syu --noconfirm
|
||||
|
||||
- name: Set up chaotic-aur repo
|
||||
run: |
|
||||
# Add chaotic-aur mirrorlist
|
||||
printf '%s\n' \
|
||||
'Server = https://chaotic.archlinux.org/$repo/$arch' \
|
||||
> /etc/pacman.d/chaotic-mirrorlist
|
||||
# Import chaotic-aur key
|
||||
pacman-key --recv-keys 3056513887B78A2F --keyserver keyserver.ubuntu.com
|
||||
pacman-key --lsign-key 3056513887B78A2F
|
||||
|
||||
printf '\n[chaotic-aur]\nSigLevel = Optional TrustAll\nInclude = /etc/pacman.d/chaotic-mirrorlist\n' \
|
||||
# Install keyring and mirrorlist packages
|
||||
pacman -U --noconfirm \
|
||||
'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' \
|
||||
'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'
|
||||
|
||||
printf '\n[chaotic-aur]\nInclude = /etc/pacman.d/chaotic-mirrorlist\n' \
|
||||
>> /etc/pacman.conf
|
||||
|
||||
pacman -Syu --noconfirm
|
||||
|
||||
Reference in New Issue
Block a user