From cfcd0b57299a9f2b13453e396c7a7b72d0aee16e Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Mon, 22 Jan 2024 17:18:39 +0100 Subject: [PATCH] Checkout specific iverilog version (can be master as well) --- .github/workflows/test-linux.yml | 5 ++++- .github/workflows/test-macos.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-linux.yml b/.github/workflows/test-linux.yml index a16481726..103c060a2 100644 --- a/.github/workflows/test-linux.yml +++ b/.github/workflows/test-linux.yml @@ -85,13 +85,16 @@ jobs: shell: bash run: | git clone https://github.com/steveicarus/iverilog.git + cd iverilog + git checkout ${{ vars.IVERILOG_VERSION }} + echo "IVERILOG_GIT=$(git rev-parse HEAD)" >> $GITHUB_ENV - name: Cache iverilog id: cache-iverilog uses: actions/cache@v3 with: path: .local/ - key: ${{ matrix.os.id }}-${{ hashFiles('iverilog/.git/refs/heads/master') }} + key: ${{ matrix.os.id }}-${{ env.IVERILOG_GIT }} - name: Build iverilog if: steps.cache-iverilog.outputs.cache-hit != 'true' diff --git a/.github/workflows/test-macos.yml b/.github/workflows/test-macos.yml index 2b48b7252..62fbc59e8 100644 --- a/.github/workflows/test-macos.yml +++ b/.github/workflows/test-macos.yml @@ -41,13 +41,16 @@ jobs: shell: bash run: | git clone https://github.com/steveicarus/iverilog.git + cd iverilog + git checkout ${{ vars.IVERILOG_VERSION }} + echo "IVERILOG_GIT=$(git rev-parse HEAD)" >> $GITHUB_ENV - name: Cache iverilog id: cache-iverilog uses: actions/cache@v3 with: path: .local/ - key: ${{ matrix.os.id }}-${{ hashFiles('iverilog/.git/refs/heads/master') }} + key: ${{ matrix.os.id }}-${{ env.IVERILOG_GIT }} - name: Build iverilog if: steps.cache-iverilog.outputs.cache-hit != 'true'