Checkout specific iverilog version (can be master as well)

This commit is contained in:
Miodrag Milanovic 2024-01-22 17:18:39 +01:00
parent 3d9e44d182
commit cfcd0b5729
2 changed files with 8 additions and 2 deletions

View File

@ -85,13 +85,16 @@ jobs:
shell: bash shell: bash
run: | run: |
git clone https://github.com/steveicarus/iverilog.git 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 - name: Cache iverilog
id: cache-iverilog id: cache-iverilog
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: .local/ path: .local/
key: ${{ matrix.os.id }}-${{ hashFiles('iverilog/.git/refs/heads/master') }} key: ${{ matrix.os.id }}-${{ env.IVERILOG_GIT }}
- name: Build iverilog - name: Build iverilog
if: steps.cache-iverilog.outputs.cache-hit != 'true' if: steps.cache-iverilog.outputs.cache-hit != 'true'

View File

@ -41,13 +41,16 @@ jobs:
shell: bash shell: bash
run: | run: |
git clone https://github.com/steveicarus/iverilog.git 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 - name: Cache iverilog
id: cache-iverilog id: cache-iverilog
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: .local/ path: .local/
key: ${{ matrix.os.id }}-${{ hashFiles('iverilog/.git/refs/heads/master') }} key: ${{ matrix.os.id }}-${{ env.IVERILOG_GIT }}
- name: Build iverilog - name: Build iverilog
if: steps.cache-iverilog.outputs.cache-hit != 'true' if: steps.cache-iverilog.outputs.cache-hit != 'true'