-
Notifications
You must be signed in to change notification settings - Fork 58
71 lines (64 loc) · 2.07 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Copyright 2020 ETH Zurich and University of Bologna.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
# Run functional regression checks
name: ci
on: [push, pull_request]
jobs:
########
# Docs #
########
docs:
name: Build documentation
runs-on: ubuntu-22.04
container:
image: ghcr.io/pulp-platform/snitch_cluster:main
steps:
- uses: actions/checkout@v2
- name: Build docs
run: make docs
##############################################
# Simulate SW on Snitch Cluster w/ Verilator #
##############################################
sw-snitch-cluster-vlt:
name: Simulate SW on Snitch Cluster w/ Verilator
runs-on: ubuntu-22.04
container:
image: ghcr.io/pulp-platform/snitch_cluster:main
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Build Software
run: |
make -C target/snitch_cluster sw
- name: Build Hardware
run: |
make -C target/snitch_cluster bin/snitch_cluster.vlt
- name: Run Tests
working-directory: target/snitch_cluster
run: |-
./sw/tests/run.py sw/tests/run.yaml --simulator verilator
./sw/apps/run.py sw/apps/run.yaml --simulator verilator
############################################
# Build SW on Snitch Cluster w/ Banshee #
############################################
sw-snitch-cluster-banshee:
name: Simulate SW on Snitch Cluster w/ Banshee
runs-on: ubuntu-22.04
container:
image: ghcr.io/pulp-platform/snitch_cluster:main
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Build Software
run: |
make -C target/snitch_cluster SELECT_RUNTIME=banshee sw
- name: Run Tests
env:
SNITCH_LOG: info
working-directory: target/snitch_cluster
run: |-
./sw/tests/run.py sw/tests/run.yaml --simulator banshee
./sw/apps/run.py sw/apps/run.yaml --simulator banshee