Skip to content

Commit 3eb1d53

Browse files
committed
Use ref cache key for the cjose cache
1 parent da95f21 commit 3eb1d53

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/cjose.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,22 @@ jobs:
5858
with:
5959
fetch-depth: 1
6060

61+
- name: Get OpenSSL commit hash
62+
id: openssl-ref
63+
run: |
64+
sha=$(./scripts/resolve-ref.sh "${{ matrix.openssl_ref }}" "openssl/openssl")
65+
echo "ref=$sha" >> "$GITHUB_OUTPUT"
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
69+
- name: Get WolfSSL commit hash
70+
id: wolfssl-ref
71+
run: |
72+
sha=$(./scripts/resolve-ref.sh "${{ matrix.wolfssl_ref }}" "wolfssl/wolfssl")
73+
echo "ref=$sha" >> "$GITHUB_OUTPUT"
74+
env:
75+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76+
6177
- name: Retrieving wolfProvider from cache
6278
uses: actions/cache/restore@v4
6379
id: wolfprov-cache-restore
@@ -70,7 +86,7 @@ jobs:
7086
openssl-install/bin
7187
${{ matrix.replace_default && 'libdefault-stub-install' || '' }}
7288
73-
key: ${{ needs.build_wolfprovider.outputs.cache_key }}
89+
key: wolfprov${{ matrix.replace_default && '-replace-default' || '' }}-${{ steps.wolfssl-ref.outputs.ref }}-${{ steps.openssl-ref.outputs.ref }}-${{ github.sha }}
7490
fail-on-cache-miss: true
7591

7692
- name: Install cjose dependencies

0 commit comments

Comments
 (0)