Skip to content

Commit

Permalink
Avoid deprecated save-always for CI cache (#722)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjalander authored Jan 8, 2025
1 parent fd724ec commit 55160ba
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/actions/BuildMlirDialect/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ runs:
id: cache-mlir
uses: actions/cache@v4
with:
save-always: true
path: |
${{ github.workspace }}/lib/mlir-rvsdg
key: ${{ runner.os }}-mlir-${{ steps.get-mlir-hash.outputs.hash }}
Expand All @@ -38,3 +37,11 @@ runs:
--install-path ${{ github.workspace }}/lib/mlir-rvsdg
shell: bash

- name: "Save MLIR to the cache"
if: steps.cache-mlir.outputs.cache-hit != 'true'
id: save-cache-circt
uses: actions/cache/save@v4
with:
path: |
${{ github.workspace }}/lib/mlir-rvsdg
key: ${{ runner.os }}-mlir-${{ steps.get-mlir-hash.outputs.hash }}

0 comments on commit 55160ba

Please sign in to comment.