Skip to content

Commit 2fc3568

Browse files
committed
fix
1 parent 5d8ebae commit 2fc3568

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,12 +244,18 @@ jobs:
244244
fi
245245
shell: bash
246246

247+
- name: Compiler build state key
248+
id: compiler-build-state-key
249+
run: |
250+
echo "value=compiler-build-state-v1-${{ matrix.os }}-${{ matrix.ocaml_compiler }}-${{ hashFiles('dune-project') }}" \
251+
| sed 's/,/-/g' >> "$GITHUB_OUTPUT"
252+
247253
- name: Restore compiler build state
248254
id: compiler-build-state
249255
uses: actions/cache@v4
250256
with:
251257
path: _build
252-
key: compiler-build-state-v1-${{ matrix.os }}-${{ matrix.ocaml_compiler }}-${{ hashFiles('dune-project') }}
258+
key: ${{ steps.compiler-build-state-key.outputs.value }}
253259

254260
- name: Build compiler
255261
if: runner.os != 'Linux'

0 commit comments

Comments
 (0)