CI: Fix dnf

This commit is contained in:
Jonas Kvinge 2023-08-11 17:03:39 +02:00
parent 8805a21567
commit 53a5603f64
1 changed files with 8 additions and 3 deletions

View File

@ -166,12 +166,17 @@ jobs:
image: fedora:${{matrix.fedora_version}} image: fedora:${{matrix.fedora_version}}
steps: steps:
- name: Update repositories - name: Update repositories
run: dnf update -y run: dnf -y update
- name: Fix dnf
run: |
if [ -f "/usr/bin/dnf5" ] && ! [ -f "/usr/bin/dnf" ]; then
ln -s /usr/bin/dnf5 /usr/bin/dnf
fi
- name: Upgrade packages - name: Upgrade packages
run: dnf upgrade -y run: dnf -y upgrade
- name: Install dependencies - name: Install dependencies
run: > run: >
dnf install -y dnf -y install
@development-tools @development-tools
redhat-lsb-core redhat-lsb-core
which which