From: Jason Ish Date: Sun, 9 Mar 2025 09:19:28 +0000 (+0100) Subject: github-ci: stop caching system packages X-Git-Tag: suricata-8.0.0-beta1~290 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed30e95a09d46d49abbd7b6d95d65b2307f47d3b;p=thirdparty%2Fsuricata.git github-ci: stop caching system packages --- diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index f4ae7ac2b2..1b53c35523 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -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 diff --git a/.github/workflows/rust-checks.yml b/.github/workflows/rust-checks.yml index 4bf869b045..1ee648e7bc 100644 --- a/.github/workflows/rust-checks.yml +++ b/.github/workflows/rust-checks.yml @@ -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