Skip to content

Commit

Permalink
ci: Use list-make-prerequisites action
Browse files Browse the repository at this point in the history
  • Loading branch information
colluca committed Sep 7, 2024
1 parent 08f4840 commit 4f89a6f
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,23 +94,19 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Get Verilator simulation binary hash
- name: Hash Verilator prerequisites
id: verilator-hash
working-directory: target/snitch_cluster
# yamllint disable rule:line-length
run: |
wget https://raw.githubusercontent.com/colluca/list-make-prerequisites/main/list-make-prerequisites.py
chmod +x list-make-prerequisites.py
./list-make-prerequisites.py bin/snitch_cluster.vlt --recursive --hash --debug
VLT_HASH=$(./list-make-prerequisites.py bin/snitch_cluster.vlt --recursive --hash 2>/dev/null)
echo "VLT_HASH=$VLT_HASH" >> $GITHUB_ENV
# yamllint enable rule:line-length
uses: colluca/[email protected]
with:
working-directory: target/snitch_cluster
target: bin/snitch_cluster.vlt
flags: --recursive
- name: Set up cache for Verilator build
id: verilator-cache
uses: actions/cache@v3
with:
path: target/snitch_cluster/bin
key: verilator-${{ env.VLT_HASH }}
key: verilator-${{ steps.verilator-hash.outputs.hash }}
restore-keys: |
verilator-
- name: Build Hardware
Expand Down

0 comments on commit 4f89a6f

Please sign in to comment.