ci/cd: move Fedora to 43 and speed up its dnf installs
Fedora 41 is EOL, so its mirrors moved to the slow archive: the first dnf transaction took ~7 minutes in the last CD run. Use the current fedora:43 image (all dependency names verified against F41 and F43) and skip weak dependencies / download in parallel in both dnf calls.
This commit is contained in:
@@ -10,7 +10,7 @@ permissions:
|
||||
contents: write
|
||||
|
||||
# One matrix, seven platforms, the same environments CI tests in (see
|
||||
# .github/workflows/ci.yml): Debian 12 / Fedora 41 / Arch / openKylin x64
|
||||
# .github/workflows/ci.yml): Debian 12 / Fedora 43 / Arch / openKylin x64
|
||||
# and arm64 containers plus the macOS and Windows hosts. Every package is
|
||||
# built from scratch — no vcpkg/cargo caches: a restored vcpkg_installed
|
||||
# or target tree has masked packaging problems before (stale ports,
|
||||
@@ -44,7 +44,7 @@ jobs:
|
||||
runner: warp-ubuntu-latest-x64-32x
|
||||
triplet: x64-linux
|
||||
artifact: linux-fedora
|
||||
container: '{"image":"fedora:41","options":"--shm-size=8g"}'
|
||||
container: '{"image":"fedora:43","options":"--shm-size=8g"}'
|
||||
- name: Arch
|
||||
platform: linux
|
||||
distro: arch
|
||||
@@ -95,7 +95,7 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
case "${{ matrix.distro }}" in
|
||||
fedora) dnf install -y git curl wget which ;;
|
||||
fedora) dnf install -y --setopt=install_weak_deps=False --setopt=max_parallel_downloads=16 git curl wget which ;;
|
||||
arch) pacman -Sy --noconfirm git curl wget which ;;
|
||||
debian|openkylin) apt-get update && apt-get install -y git curl ca-certificates wget ;;
|
||||
esac
|
||||
@@ -184,7 +184,11 @@ jobs:
|
||||
if: matrix.distro == 'fedora'
|
||||
shell: bash
|
||||
run: |
|
||||
dnf install -y \
|
||||
# Fedora 41 is EOL (its mirrors moved to the slow archive), so
|
||||
# the matrix uses the current release; weak dependencies (docs,
|
||||
# fonts, optional tooling) are skipped and downloads run wide.
|
||||
dnf install -y --setopt=install_weak_deps=False \
|
||||
--setopt=max_parallel_downloads=16 \
|
||||
gcc gcc-c++ clang clang-devel cmake pkgconf-pkg-config nasm \
|
||||
git curl zip unzip tar python3 patch xz which \
|
||||
pipewire-devel jack-audio-connection-kit-devel \
|
||||
|
||||
Reference in New Issue
Block a user