From: Jason Ish Date: Fri, 18 Nov 2022 17:18:38 +0000 (-0600) Subject: github-ci: cache RPMs on dnf distros X-Git-Tag: suricata-7.0.0-rc1~346 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0dddfbc8e6d54f3d4b0a6e5b60d2996ba5fd680f;p=thirdparty%2Fsuricata.git github-ci: cache RPMs on dnf distros --- diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 3e07680c1b..dfa0df8e60 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -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 \