-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Use
list-make-prerequisites
action
- Loading branch information
Showing
1 changed file
with
7 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|