]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
github-ci: cache RPMs on dnf distros
authorJason Ish <jason.ish@oisf.net>
Fri, 18 Nov 2022 17:18:38 +0000 (11:18 -0600)
committerVictor Julien <vjulien@oisf.net>
Tue, 22 Nov 2022 13:25:33 +0000 (14:25 +0100)
.github/workflows/builds.yml

index 3e07680c1bf44b4b24e984b1b357b877b84e1e6d..dfa0df8e603ff1d5b2d6abf6aeb090254abbe232 100644 (file)
@@ -150,6 +150,13 @@ jobs:
           path: ~/.cargo
           key: ${{ github.job }}-cargo
 
+      - name: Cache RPMs
+        uses: actions/cache@v3
+        with:
+          path: /var/cache/dnf
+          key: ${{ github.job }}-dnf
+      - run: echo "keepcache=1" >> /etc/dnf/dnf.conf
+
       - uses: actions/checkout@v3.1.0
 
       # Download and extract dependency archives created during prep
@@ -258,6 +265,13 @@ jobs:
           path: ~/.cargo
           key: ${{ github.job }}-cargo
 
+      - name: Cache RPMs
+        uses: actions/cache@v3
+        with:
+          path: /var/cache/dnf
+          key: ${{ github.job }}-dnf
+      - run: echo "keepcache=1" >> /etc/dnf/dnf.conf
+
       - uses: actions/checkout@v3.1.0
 
       # Prebuild check for duplicat SIDs
@@ -380,6 +394,7 @@ jobs:
         with:
           path: ~/.cargo
           key: ${{ github.job }}-cargo
+
       - name: Install system dependencies
         run: |
           yum -y install epel-release
@@ -454,6 +469,13 @@ jobs:
           path: ~/.cargo
           key: ${{ github.job }}-cargo
 
+      - name: Cache RPMs
+        uses: actions/cache@v3
+        with:
+          path: /var/cache/dnf
+          key: ${{ github.job }}-dnf
+      - run: echo "keepcache=1" >> /etc/dnf/dnf.conf
+
       - run: |
           dnf -y install \
                 autoconf \
@@ -544,6 +566,13 @@ jobs:
           path: ~/.cargo
           key: ${{ github.job }}-cargo
 
+      - name: Cache RPMs
+        uses: actions/cache@v3
+        with:
+          path: /var/cache/dnf
+          key: ${{ github.job }}-dnf
+      - run: echo "keepcache=1" >> /etc/dnf/dnf.conf
+
       - run: |
           dnf -y install \
                 autoconf \
@@ -638,6 +667,13 @@ jobs:
           path: ~/.cargo
           key: ${{ github.job }}-cargo
 
+      - name: Cache RPMs
+        uses: actions/cache@v3
+        with:
+          path: /var/cache/dnf
+          key: ${{ github.job }}-dnf
+      - run: echo "keepcache=1" >> /etc/dnf/dnf.conf
+
       - run: |
           dnf -y install \
                 autoconf \
@@ -729,6 +765,13 @@ jobs:
           path: ~/.cargo
           key: ${{ github.job }}-cargo
 
+      - name: Cache RPMs
+        uses: actions/cache@v3
+        with:
+          path: /var/cache/dnf
+          key: ${{ github.job }}-dnf
+      - run: echo "keepcache=1" >> /etc/dnf/dnf.conf
+
       - run: |
           dnf -y install \
                 autoconf \