Fix gitea workflows

This commit is contained in:
alvinlollo
2026-09-15 15:37:35 +10:00
committed by alvinlollo
parent 89e98b1fe3
commit df679c4377
3 changed files with 61 additions and 52 deletions
+29 -39
View File
@@ -12,30 +12,31 @@ on:
jobs:
check-packages:
runs-on: archlinux
container:
image: archlinux:latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install prerequisites
run: |
pacman -Syu --noconfirm --needed pacman pacman-contrib curl gnupg
- name: Set up official repos (extra, multilib)
run: |
cat > /etc/pacman.conf <<'EOF'
[options]
Architecture = auto
SigLevel = Required DatabaseOptional
LocalFileSigLevel = Optional
[core]
Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist
[multilib]
Include = /etc/pacman.d/mirrorlist
EOF
printf '%s\n' \
'[options]' \
'Architecture = auto' \
'SigLevel = Required DatabaseOptional' \
'LocalFileSigLevel = Optional' \
'' \
'[core]' \
'Include = /etc/pacman.d/mirrorlist' \
'' \
'[extra]' \
'Include = /etc/pacman.d/mirrorlist' \
'' \
'[multilib]' \
'Include = /etc/pacman.d/mirrorlist' \
> /etc/pacman.conf
# Generate a basic mirrorlist
curl -fsSL "https://archlinux.org/mirrorlist/all/status/" \
@@ -51,17 +52,13 @@ jobs:
pacman -U --noconfirm /tmp/cachyos-keyring.pkg.tar.zst || true
# Add CachyOS mirrorlist
cat > /etc/pacman.d/cachyos-mirrorlist <<'MIRROR'
Server = https://mirror.cachyos.org/$repo/$arch
MIRROR
printf '%s\n' \
'Server = https://mirror.cachyos.org/$repo/$arch' \
> /etc/pacman.d/cachyos-mirrorlist
# Add CachyOS repo to pacman.conf
cat >> /etc/pacman.conf <<'EOF'
[cachyos]
SigLevel = Optional TrustAll
Include = /etc/pacman.d/cachyos-mirrorlist
EOF
printf '\n[cachyos]\nSigLevel = Optional TrustAll\nInclude = /etc/pacman.d/cachyos-mirrorlist\n' \
>> /etc/pacman.conf
pacman -Syu --noconfirm
@@ -72,23 +69,16 @@ jobs:
pacman-key --lsign-key FBA220DFC880C036 || true
# Add chaotic-aur mirrorlist
cat > /etc/pacman.d/chaotic-mirrorlist <<'MIRROR'
Server = https://chaotic.archlinux.org/$repo/$arch
MIRROR
printf '%s\n' \
'Server = https://chaotic.archlinux.org/$repo/$arch' \
> /etc/pacman.d/chaotic-mirrorlist
# Add chaotic-aur repo to pacman.conf
cat >> /etc/pacman.conf <<'EOF'
[chaotic-aur]
SigLevel = Optional TrustAll
Include = /etc/pacman.d/chaotic-mirrorlist
EOF
printf '\n[chaotic-aur]\nSigLevel = Optional TrustAll\nInclude = /etc/pacman.d/chaotic-mirrorlist\n' \
>> /etc/pacman.conf
pacman -Syu --noconfirm
- name: Checkout repo
uses: actions/checkout@v4
- name: Check all packages
run: |
echo "═══════════════════════════════════════════════════════════════"
@@ -140,4 +130,4 @@ jobs:
else
echo ""
echo "✅ All packages verified successfully!"
fi
fi