Skip to content

Commit

Permalink
ci: Store DNF cache to speed up rpm package downloads every week
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Jelen <[email protected]>
  • Loading branch information
Jakuje committed Mar 1, 2024
1 parent 7e7b6ed commit 5353e8e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@ jobs:
name: [ossl3, fips, release]
container: fedora:latest
steps:
- name: Get Date for DNF cache entry
id: get-date
run: |
echo "date=$(/bin/date -u "+%Y%V")" >> $GITHUB_OUTPUT
shell: bash

- name: Store DNF cache
uses: actions/cache@v4
with:
path: |
/var/cache/dnf
key: ${{ runner.os }}-dnf-${{ steps.get-date.outputs.date }}

- name: Install Dependencies
run: |
dnf -y install git cargo clang-devel openssl-devel \
Expand Down

0 comments on commit 5353e8e

Please sign in to comment.