github-ci: cache RPMs on dnf distros

pull/8198/head
Jason Ish 2 years ago committed by Victor Julien
parent 814a76a217
commit 0dddfbc8e6

@ -150,6 +150,13 @@ jobs:
path: ~/.cargo path: ~/.cargo
key: ${{ github.job }}-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 - uses: actions/checkout@v3.1.0
# Download and extract dependency archives created during prep # Download and extract dependency archives created during prep
@ -258,6 +265,13 @@ jobs:
path: ~/.cargo path: ~/.cargo
key: ${{ github.job }}-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 - uses: actions/checkout@v3.1.0
# Prebuild check for duplicat SIDs # Prebuild check for duplicat SIDs
@ -380,6 +394,7 @@ jobs:
with: with:
path: ~/.cargo path: ~/.cargo
key: ${{ github.job }}-cargo key: ${{ github.job }}-cargo
- name: Install system dependencies - name: Install system dependencies
run: | run: |
yum -y install epel-release yum -y install epel-release
@ -454,6 +469,13 @@ jobs:
path: ~/.cargo path: ~/.cargo
key: ${{ github.job }}-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: | - run: |
dnf -y install \ dnf -y install \
autoconf \ autoconf \
@ -544,6 +566,13 @@ jobs:
path: ~/.cargo path: ~/.cargo
key: ${{ github.job }}-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: | - run: |
dnf -y install \ dnf -y install \
autoconf \ autoconf \
@ -638,6 +667,13 @@ jobs:
path: ~/.cargo path: ~/.cargo
key: ${{ github.job }}-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: | - run: |
dnf -y install \ dnf -y install \
autoconf \ autoconf \
@ -729,6 +765,13 @@ jobs:
path: ~/.cargo path: ~/.cargo
key: ${{ github.job }}-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: | - run: |
dnf -y install \ dnf -y install \
autoconf \ autoconf \

Loading…
Cancel
Save