Skip to content

Commit c8272af

Browse files
committed
try to improve ccache hits
1 parent e60cca8 commit c8272af

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/self_hosted_build_and_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ jobs:
5454
with:
5555
path: |
5656
${{ steps.setup-runner.outputs.ccache-dir }}
57-
key: ccache-self-hosted-linux-${{ steps.setup-runner.outputs.compiler-id }}-coverage-${{ github.event.pull_request.number || github.event.inputs.ref || github.ref_name }}-${{ github.event.pull_request.head.sha || steps.checkout-sha.outputs.sha }}
57+
key: ccache-self-hosted-linux-${{ steps.setup-runner.outputs.compiler-id }}-coverage-${{ github.head_ref || github.event.inputs.ref || github.ref_name }}-${{ github.run_id }}-${{ github.run_attempt }}
5858
restore-keys: |
59-
ccache-self-hosted-linux-${{ steps.setup-runner.outputs.compiler-id }}-coverage-${{ github.event.pull_request.number || github.event.inputs.ref || github.ref_name }}-
59+
ccache-self-hosted-linux-${{ steps.setup-runner.outputs.compiler-id }}-coverage-${{ github.head_ref || github.event.inputs.ref || github.ref_name }}-
6060
ccache-self-hosted-linux-${{ steps.setup-runner.outputs.compiler-id }}-coverage-
6161
ccache-self-hosted-linux-${{ steps.setup-runner.outputs.compiler-id }}-
6262
ccache-self-hosted-linux-

0 commit comments

Comments
 (0)