Skip to content

Commit 5a93977

Browse files
Add actual sanity test for Verilator (minimal)
1 parent 4e5f72a commit 5a93977

File tree

1 file changed

+30
-6
lines changed

1 file changed

+30
-6
lines changed

.github/workflows/verilator-ci.yml

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,36 @@ on: [push, pull_request, workflow_dispatch]
88
jobs:
99
verilator-ci:
1010
name: Public Verilator CI
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-22.04
1212
container:
1313
image: fconti/pulp-verilator:latest
14+
volumes:
15+
- ${{ github.workspace }}:/workspaces
1416
steps:
15-
- name: Test
16-
# Skip on forks or pull requests from forks due to missing secrets.
17-
if:
18-
github.repository == 'pulp-platform/pulpissimo' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
19-
run: echo "HELLO"
17+
- name: Checkout repository
18+
uses: actions/checkout@v2
19+
- name: Check container environment
20+
run: |
21+
echo "Running on:"
22+
cat /etc/os-release
23+
- name: Where am I?
24+
shell: bash
25+
run: |
26+
cd /workspaces
27+
echo `ls -l`
28+
- name: Verilate
29+
shell: bash
30+
run: |
31+
cd /workspaces
32+
make checkout
33+
make verilate
34+
- name: SW sanity check
35+
shell: bash
36+
env:
37+
VERILATOR_PATH: /workspaces/build/verilator
38+
run: |
39+
cd /workspaces
40+
git submodule update --init --recursive
41+
source sw/pulp-runtime/configs/pulpissimo.sh
42+
cd sw/regression_tests/hello
43+
make clean all run platform=verilator bootmode=fast_debug

0 commit comments

Comments
 (0)