mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-08 18:51:28 +00:00
ci: Fix iverilog version caching
This commit is contained in:
parent
94d07872e6
commit
1cdf058df4
2 changed files with 6 additions and 4 deletions
5
.github/workflows/test-build.yml
vendored
5
.github/workflows/test-build.yml
vendored
|
@ -107,11 +107,12 @@ jobs:
|
||||||
uses: ./.github/actions/setup-build-env
|
uses: ./.github/actions/setup-build-env
|
||||||
|
|
||||||
- name: Get iverilog
|
- name: Get iverilog
|
||||||
|
id: get-iverilog
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/steveicarus/iverilog.git
|
git clone https://github.com/steveicarus/iverilog.git
|
||||||
cd iverilog
|
cd iverilog
|
||||||
echo "IVERILOG_GIT=$(git rev-parse HEAD)" >> $GITHUB_ENV
|
echo "IVERILOG_GIT=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Get vcd2fst
|
- name: Get vcd2fst
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -128,7 +129,7 @@ jobs:
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: .local/
|
path: .local/
|
||||||
key: ${{ matrix.os }}-${IVERILOG_GIT}
|
key: ${{ matrix.os }}-${{ steps.get-iverilog.outputs.IVERILOG_GIT }}
|
||||||
|
|
||||||
- name: Build iverilog
|
- name: Build iverilog
|
||||||
if: steps.cache-iverilog.outputs.cache-hit != 'true'
|
if: steps.cache-iverilog.outputs.cache-hit != 'true'
|
||||||
|
|
5
.github/workflows/test-sanitizers.yml
vendored
5
.github/workflows/test-sanitizers.yml
vendored
|
@ -46,11 +46,12 @@ jobs:
|
||||||
uses: ./.github/actions/setup-build-env
|
uses: ./.github/actions/setup-build-env
|
||||||
|
|
||||||
- name: Get iverilog
|
- name: Get iverilog
|
||||||
|
id: get-iverilog
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/steveicarus/iverilog.git
|
git clone https://github.com/steveicarus/iverilog.git
|
||||||
cd iverilog
|
cd iverilog
|
||||||
echo "IVERILOG_GIT=$(git rev-parse HEAD)" >> $GITHUB_ENV
|
echo "IVERILOG_GIT=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Get vcd2fst
|
- name: Get vcd2fst
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -67,7 +68,7 @@ jobs:
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: .local/
|
path: .local/
|
||||||
key: ${{ matrix.os }}-${IVERILOG_GIT}
|
key: ${{ matrix.os }}-${{ steps.get-iverilog.outputs.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…
Add table
Add a link
Reference in a new issue