From ee8bfbcb23b648d8c9ce1086f9d1797c0e62deaf Mon Sep 17 00:00:00 2001 From: Luca Colagrande Date: Fri, 6 Sep 2024 16:47:28 +0200 Subject: [PATCH] ci: Use `list-make-prerequisites` action --- .github/workflows/ci.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e2fa05ded..914accf5a4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -94,23 +94,19 @@ jobs: - uses: actions/checkout@v2 with: submodules: 'recursive' - - name: Get Verilator simulation binary hash + - name: Get Verilator prerequisites hash 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/list-make-prerequisites@v1 + with: + working-directory: target/snitch_cluster + target: bin/snitch_cluster.vlt + recursive: true - 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