]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
github-ci: stop caching system packages
authorJason Ish <jason.ish@oisf.net>
Sun, 9 Mar 2025 09:19:28 +0000 (10:19 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 10 Mar 2025 11:23:07 +0000 (12:23 +0100)
.github/workflows/builds.yml
.github/workflows/rust-checks.yml

index f4ae7ac2b210456fc070973a32e2fc084755e93e..1b53c35523d4f1d3ed6c61582fb8e4cbdddba7d1 100644 (file)
@@ -76,13 +76,6 @@ jobs:
           path: ~/.cargo/registry
           key: cargo-registry
 
-      - name: Cache RPMs
-        uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
-        with:
-          path: /var/cache/dnf
-          key: ${{ github.job }}-dnf
-      - run: echo "keepcache=1" >> /etc/dnf/dnf.conf
-
       - name: Determine number of CPUs
         run: echo CPUS=$(nproc --all) >> $GITHUB_ENV
 
@@ -225,14 +218,6 @@ jobs:
     container: almalinux:9
     needs: [prepare-deps, prepare-cbindgen]
     steps:
-      - name: Cache RPMs
-        uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
-        with:
-          path: /var/cache/dnf
-          # TODO: Find some variable that matches the job name.
-          key: almalinux-9-templates-dnf
-      - run: echo "keepcache=1" >> /etc/dnf/dnf.conf
-
       # Cache Rust stuff.
       - name: Cache cargo registry
         uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
@@ -327,13 +312,6 @@ jobs:
           path: ~/.cargo/registry
           key: cargo-registry
 
-      - name: Cache RPMs
-        uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
-        with:
-          path: /var/cache/dnf
-          key: ${{ github.job }}-dnf
-      - run: echo "keepcache=1" >> /etc/dnf/dnf.conf
-
       - name: Determine number of CPUs
         run: echo CPUS=$(nproc --all) >> $GITHUB_ENV
 
@@ -409,13 +387,6 @@ jobs:
           path: ~/.cargo/registry
           key: cargo-registry
 
-      - name: Cache RPMs
-        uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
-        with:
-          path: /var/cache/dnf
-          key: ${{ github.job }}-dnf
-      - run: echo "keepcache=1" >> /etc/dnf/dnf.conf
-
       - name: Download Suricata distribution archive
         uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806
         with:
@@ -482,13 +453,6 @@ jobs:
           path: ~/.cargo/registry
           key: cargo-registry
 
-      - name: Cache RPMs
-        uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
-        with:
-          path: /var/cache/dnf
-          key: ${{ github.job }}-dnf
-      - run: echo "keepcache=1" >> /etc/dnf/dnf.conf
-
       - name: Determine number of CPUs
         run: echo CPUS=$(nproc --all) >> $GITHUB_ENV
 
@@ -579,13 +543,6 @@ jobs:
           path: ~/.cargo/registry
           key: cargo-registry
 
-      - name: Cache RPMs
-        uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
-        with:
-          path: /var/cache/dnf
-          key: ${{ github.job }}-dnf
-      - run: echo "keepcache=1" >> /etc/dnf/dnf.conf
-
       - name: Determine number of CPUs
         run: echo CPUS=$(nproc --all) >> $GITHUB_ENV
 
@@ -673,13 +630,6 @@ jobs:
           path: ~/.cargo/registry
           key: cargo-registry
 
-      - name: Cache RPMs
-        uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
-        with:
-          path: /var/cache/dnf
-          key: ${{ github.job }}-dnf
-      - run: echo "keepcache=1" >> /etc/dnf/dnf.conf
-
       - name: Determine number of CPUs
         run: echo CPUS=$(nproc --all) >> $GITHUB_ENV
 
@@ -770,13 +720,6 @@ jobs:
           path: ~/.cargo/registry
           key: cargo-registry
 
-      - name: Cache RPMs
-        uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
-        with:
-          path: /var/cache/dnf
-          key: ${{ github.job }}-dnf
-      - run: echo "keepcache=1" >> /etc/dnf/dnf.conf
-
       - name: Determine number of CPUs
         run: echo CPUS=$(nproc --all) >> $GITHUB_ENV
 
@@ -1049,13 +992,6 @@ jobs:
           path: ~/.cargo/registry
           key: cargo-registry
 
-      - name: Cache RPMs
-        uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
-        with:
-          path: /var/cache/dnf
-          key: ${{ github.job }}-dnf
-      - run: echo "keepcache=1" >> /etc/dnf/dnf.conf
-
       - name: Determine number of CPUs
         run: echo CPUS=$(nproc --all) >> $GITHUB_ENV
 
@@ -1121,13 +1057,6 @@ jobs:
           path: ~/.cargo/registry
           key: cargo-registry
 
-      - name: Cache RPMs
-        uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
-        with:
-          path: /var/cache/dnf
-          key: ${{ github.job }}-dnf
-      - run: echo "keepcache=1" >> /etc/dnf/dnf.conf
-
       - name: Determine number of CPUs
         run: echo CPUS=$(nproc --all) >> $GITHUB_ENV
 
@@ -2549,19 +2478,6 @@ jobs:
           path: ~/.cargo/registry
           key: cargo-registry
 
-      # Setup apt package caching.
-      - name: Setup apt package caching
-        run: |
-          echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' >> /etc/apt/apt.conf.d/99cache
-          echo 'APT::Keep-Downloaded-Packages "false";' >> /etc/apt/apt.conf.d/99cache
-          rm -f /etc/apt/apt.conf.d/docker-clean
-
-      - name: Cache apt downloads
-        uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
-        with:
-          path: /var/cache/apt/archives
-          key: ${{ github.job }}-apt
-
       - name: Determine number of CPUs
         run: echo CPUS=$(nproc --all) >> $GITHUB_ENV
 
@@ -3085,13 +3001,6 @@ jobs:
           path: ~/.cargo/registry
           key: cargo-registry
 
-      - name: Cache RPMs
-        uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
-        with:
-          path: /var/cache/dnf
-          key: ${{ github.job }}-dnf
-      - run: echo "keepcache=1" >> /etc/dnf/dnf.conf
-
       - name: Determine number of CPUs
         run: echo CPUS=$(nproc --all) >> $GITHUB_ENV
 
index 4bf869b04586bdbf89e3d6cf2d422cb2316d79d6..1ee648e7bca74b8696ae8a95160dc85ffdef93fe 100644 (file)
@@ -30,13 +30,6 @@ jobs:
           path: ~/.cargo
           key: ${{ github.job }}-cargo
 
-      - name: Cache RPMs
-        uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
-        with:
-          path: /var/cache/dnf
-          key: ${{ github.job }}-dnf
-      - run: echo "keepcache=1" >> /etc/dnf/dnf.conf
-
       - name: Install system packages
         run: |
           dnf -y install dnf-plugins-core epel-release
@@ -114,13 +107,6 @@ jobs:
           path: ~/.cargo
           key: ${{ github.job }}-cargo
 
-      - name: Cache RPMs
-        uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
-        with:
-          path: /var/cache/dnf
-          key: ${{ github.job }}-dnf
-      - run: echo "keepcache=1" >> /etc/dnf/dnf.conf
-
       - name: Install system packages
         run: |
           dnf -y install dnf-plugins-core epel-release