mirror of https://github.com/YosysHQ/yosys.git
Checkout specific iverilog version (can be master as well)
This commit is contained in:
parent
3d9e44d182
commit
cfcd0b5729
|
@ -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'
|
||||||
|
|
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue