Skip to content

Commit e896c5c

Browse files
authored
[ci] Switch to distro Verilator (#136)
1 parent 1ff4250 commit e896c5c

File tree

1 file changed

+2
-28
lines changed

1 file changed

+2
-28
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ on:
77
pull_request:
88
workflow_dispatch:
99

10-
env:
11-
verilator-version: v5.022
12-
verilator-install-dir: verilator-install
13-
1410
jobs:
1511
ci:
1612
name: ci
@@ -29,30 +25,8 @@ jobs:
2925
apps: sbt
3026
- name: Setup Dependencies
3127
run: |
32-
sudo apt-get install ccache
33-
- name: Get Cached Verilator
34-
id: get-cached-verilator
35-
uses: actions/cache@v4
36-
with:
37-
path: ${{ env.verilator-install-dir }}
38-
key: verilator-${{ env.verilator-version }}
39-
- name: Install Verilator
40-
if: steps.get-cached-verilator.outputs.cache-hit != 'true'
41-
run: |
42-
sudo apt-get install git help2man perl python3 make autoconf g++ flex bison numactl perl-doc libfl-dev
43-
git clone https://github.com/verilator/verilator
44-
unset VERILATOR_ROOT
45-
cd verilator
46-
git checkout ${{ env.verilator-version }}
47-
autoconf
48-
./configure --prefix=$(pwd)/../${{ env.verilator-install-dir }}
49-
make
50-
make install
51-
- name: Set PATH
52-
run: |
53-
echo "$(pwd)/${{ env.verilator-install-dir }}/bin" >> $GITHUB_PATH
54-
echo VERILATOR_ROOT="$(pwd)/${{ env.verilator-install-dir }}/share/verilator" >> $GITHUB_ENV
55-
ln -sf $(pwd)/${{ env.verilator-install-dir }}/bin/verilator_bin $(pwd)/${{ env.verilator-install-dir }}/share/verilator/verilator_bin
28+
sudo apt-get install verilator
29+
verilator --version
5630
- name: SBT Test
5731
run: sbt test
5832
- name: mill Test

0 commit comments

Comments
 (0)