CI: uncomment clangarm64 and staging from pacman.conf instead of adding from scratch

This commit is contained in:
Jeremy Drake
2022-08-08 13:49:49 -07:00
parent b01f79c404
commit e44e707faa

View File

@@ -65,8 +65,8 @@ jobs:
shell: msys2 {0}
run: |
cp /etc/pacman.conf /etc/pacman.conf.bak
grep -qF '[clangarm64]' /etc/pacman.conf || sed -i '1s|^|[clangarm64]\nInclude = /etc/pacman.d/mirrorlist.mingw\n|' /etc/pacman.conf
sed -i '1s|^|[staging]\nServer = https://repo.msys2.org/staging/\nSigLevel = Never\n|' /etc/pacman.conf
grep -qFx '[clangarm64]' /etc/pacman.conf || sed -i '/^# \[clangarm64\]/,/^$/ s|^# ||g' /etc/pacman.conf
grep -qFx '[staging]' /etc/pacman.conf || sed -i '/^# \[staging\]/,/^$/ s|^# ||g' /etc/pacman.conf
- name: Update using staging
run: |