Skip to content

Commit 7a2371b

Browse files
committed
fix
1 parent d2d9164 commit 7a2371b

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

.github/ccache/action.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,17 @@ inputs:
88
runs:
99
using: "composite"
1010
steps:
11-
- name: Prepare compiler cache
12-
id: prep-ccache
11+
- name: Prepare compiler cache
1312
shell: bash
1413
run: |
1514
mkdir -p "${CCACHE_DIR}"
16-
echo "dir=$CCACHE_DIR" >> $GITHUB_OUTPUT
17-
NOW=$(date -u +"%F-%T")
18-
echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
15+
echo "CCACHE_TIMESTAMP=$(date -u +"%F-%T")" >> $GITHUB_ENV
1916
- name: Setup compiler cache
2017
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
2118
id: cache-ccache
2219
with:
23-
path: ${{ steps.prep-ccache.outputs.dir }}
24-
key: ccache-v0-${{ inputs.key_segment }}-${{ steps.prep-ccache.outputs.timestamp }}
20+
path: ${{ env.CCACHE_DIR }}
21+
key: ccache-v0-${{ inputs.key_segment }}-${{ env.CCACHE_TIMESTAMP }}
2522
restore-keys: ccache-v0-${{ inputs.key_segment }}
2623
- name: Install Pixi
2724
uses: prefix-dev/setup-pixi@a09b6247153796b190642a2b53fac4241043cf6f # v0.10.0

0 commit comments

Comments
 (0)