]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Ensure yum is installed on Rocky 9
authorNick Porter <nick@portercomputing.co.uk>
Mon, 20 May 2024 08:13:54 +0000 (09:13 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Mon, 20 May 2024 08:13:54 +0000 (09:13 +0100)
Once CentOS 7 goes EoL, we can switch to dnf

.github/workflows/ci-rpm.yml

index 94517f3ece01621c2a3dc9ae14cf156a063a92ed..7db9766b359084b1cc831e02268397803fbbc606 100644 (file)
@@ -57,6 +57,12 @@ jobs:
       run: |
         yum install -y https://packages.endpointdev.com/rhel/7/os/x86_64/git-core-2.30.1-1.ep7.x86_64.rpm
 
+    # Rocky 9 uses dnf by default.  CentOS 7 doesn't have dnf.  Install yum on Rocky 9 so all distros work
+    - name: Install yum
+      if: ${{ matrix.env.NAME == 'rocky-9'}}
+      run: |
+        dnf install -y yum
+
     - name: Install distro git for Rocky and CentOS 8.
       if: ${{ startsWith(matrix.env.NAME, 'rocky-') || matrix.env.NAME == 'centos-8' }}
       run: |
@@ -236,6 +242,11 @@ jobs:
         yum clean all && yum makecache
         yum distro-sync -y --allowerasing
 
+    - name: Install yum
+      if: ${{ matrix.env.NAME == 'rocky-9'}}
+      run: |
+        dnf install -y yum
+
     - name: LTB repo for CentOS and Rocky 8
       if: ${{ startsWith(matrix.env.NAME, 'centos-') || matrix.env.NAME == 'rocky-8' }}
       run: |