Skip to content

Commit

Permalink
ci: Cache APT package archives
Browse files Browse the repository at this point in the history
Signed-off-by: Edwin Török <[email protected]>
  • Loading branch information
edwintorok committed Apr 25, 2024
1 parent cc55dd2 commit 011f602
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/setup-xapi-environment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@ runs:
id: dotenv
uses: falti/dotenv-action@v1

# Avoid upstream network blips affecting CI
# Our dependencies are expressed in opam files,
# so reuse cache from jobs with similar opam files
# Dependencies can also change in upstream opam, but more rarely
- name: Cache Ubuntu package downloads
uses: actions/cache@v4
with:
path:
- /var/cache/apt
- /var/lib/apt/lists
key: ${{ runner.os }}-apt-${{hashFiles('*.opam')}}
restore-keys: |
${{ runner.os }}-apt-
- name: Update Ubuntu repositories
shell: bash
run: sudo apt-get update
Expand Down

0 comments on commit 011f602

Please sign in to comment.