Skip to content

Commit

Permalink
make cache key dependent on submodule versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mibmo committed Apr 10, 2023
1 parent 126ff1e commit e02353f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,14 @@ jobs:
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION_SPECIFIER }}
- name: Compute cache key
id: cache-data
run: echo "::set-output key=${{ runner.os }}-deps-$(git submodules status | sha256sum | cut -d ' ' -f1)"
- name: Cache dependencies
id: cache-deps
uses: actions/cache@v3
with:
key: ${{ runner.os }}-deps
key: ${{ steps.cache-data.outputs.key }}
path: |
libevent
openssl
Expand Down Expand Up @@ -73,10 +76,14 @@ jobs:
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION_SPECIFIER }}
- name: Compute cache key
id: cache-data
run: echo "::set-output key=${{ runner.os }}-deps-$(git submodules status | sha256sum | cut -d ' ' -f1)"
- name: Cache dependencies
id: cache-deps
uses: actions/cache@v3
with:
key: ${{ runner.os }}-deps
key: ${{ steps.cache-data.outputs.key }}
path: |
libevent
openssl
Expand Down

0 comments on commit e02353f

Please sign in to comment.