Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated caching for CI CIRCT build #661

Merged
merged 7 commits into from
Oct 18, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .github/actions/BuildCirct/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@ description: "Builds CIRCT, which is used for the HLS backend"
runs:
using: "composite"
steps:
- uses: actions/checkout@v4

sjalander marked this conversation as resolved.
Show resolved Hide resolved
- name: "Get the commit used for building CIRCT and use it as the cache key"
id: get-circt-hash
run: |
echo "hash=$(./scripts/build-circt.sh --get-commit-hash)" >> $GITHUB_OUTPUT
shell: bash

- name: "Try to fetch CIRCT from the cache"
id: cache-circt
uses: actions/cache@v4
id: restore-cache-circt
uses: actions/cache/restore@v4
with:
save-always: true
path: |
${{ github.workspace }}/build-circt/circt
key: ${{ runner.os }}-circt-${{ steps.get-circt-hash.outputs.hash }}
Expand All @@ -34,3 +35,11 @@ runs:
--install-path ${{ github.workspace }}/build-circt/circt \
--llvm-lit-path ~/.local/bin/lit
shell: bash

- name: "Save CIRCT to the cache"
id: save-cache-circt
uses: actions/cache/save@v4
phate marked this conversation as resolved.
Show resolved Hide resolved
with:
path: |
${{ github.workspace }}/build-circt/circt
key: ${{ runner.os }}-circt-${{ steps.get-circt-hash.outputs.hash }}
Loading