Skip to content

Commit

Permalink
ci: don't share deps cache across OS
Browse files Browse the repository at this point in the history
Improves binary compatibility of GitHub CI deps cache across
different Linux distros
  • Loading branch information
riptl authored and ripatel-fd committed Apr 20, 2024
1 parent b11df4b commit 9e075fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ runs:

- id: deps-sh-hash
shell: bash
run: sha256sum '${{ inputs.deps-script-path }}' | awk '{print "HASH=" $1}' >> "$GITHUB_OUTPUT"
run: cat /etc/os-release '${{ inputs.deps-script-path }}' | sha256sum | awk '{print "HASH=" $1}' >> "$GITHUB_OUTPUT"

- id: deps-sh-cache
uses: actions/cache@v4
with:
path: deps-bundle.tar.zst
key: ${{ runner.os }}-deps-sh-${{ steps.deps-sh-hash.outputs.HASH }}
key: ${{ runner.os }}-${{ runner.arch }}-deps-sh-${{ steps.deps-sh-hash.outputs.HASH }}

- name: Install system level dependencies
shell: bash
Expand Down

0 comments on commit 9e075fd

Please sign in to comment.