-
Notifications
You must be signed in to change notification settings - Fork 11
126 lines (119 loc) · 3.89 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# 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/occamy
# steps:
# - uses: actions/checkout@v2
# - name: Build docs
# run: mkdocs build
######################################
# Simulate SW on Occamy w/ Verilator #
######################################
sw-occamy-vlt:
name: Simulate SW on Occamy w/ Verilator
runs-on: ubuntu-22.04
container:
image: ghcr.io/pulp-platform/occamy
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
# - name: Build MUSL dependency
# run: |
# cd sw/deps
# mkdir install
# cd musl
# CC=$LLVM_BINROOT/clang ./configure --disable-shared \
# --prefix=../install/ --enable-wrapper=all \
# CFLAGS="-mcpu=snitch -menable-experimental-extensions"
# make -j4
# make install
# cd ../../../
- name: Get Bender dependencies
run: |
bender
- name: Build Software
run: |
make -C target/sim sw
- name: Build Hardware
run: |
make -C target/sim bin/occamy.vlt
# - name: Run Unit Tests
# working-directory: target/sim
# run: |-
# ./sw/tests/run.py sw/tests/passing-apps.list --simulator verilator \
# 2>&1 | tee tests.log
# - name: Run Test Applications
# working-directory: target/sim
# env:
# SNITCH_LOG: info
# run: |-
# ./sw/apps/run.py sw/apps/passing-apps.list --simulator verilator \
# 2>&1 | tee apps.log
# - name: Check Unit Tests
# working-directory: target/sim
# run: |-
# grep -zoP 'All tests passed' tests.log
# - name: Check Test Applications
# working-directory: target/sim
# run: |-
# grep -zoP 'All tests passed' apps.log
############################################
# 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/occamy
# steps:
# - uses: actions/checkout@v2
# with:
# submodules: 'recursive'
# - name: Build MUSL dependency
# run: |
# cd sw/deps
# mkdir install
# cd musl
# CC=$LLVM_BINROOT/clang ./configure --disable-shared \
# --prefix=../install/ --enable-wrapper=all \
# CFLAGS="-mcpu=snitch -menable-experimental-extensions"
# make -j4
# make install
# cd ../../../
# - name: Build Software
# run: |
# make -C target/snitch_cluster SELECT_RUNTIME=banshee sw
# - name: Run Unit Tests
# working-directory: target/snitch_cluster
# env:
# SNITCH_LOG: info
# run: |-
# ./sw/tests/run.py sw/tests/banshee-apps.list --simulator banshee \
# 2>&1 | tee tests.log
# - name: Run Test Applications
# working-directory: target/snitch_cluster
# env:
# SNITCH_LOG: info
# run: |-
# ./sw/apps/run.py sw/apps/passing-apps.list --simulator banshee \
# 2>&1 | tee apps.log
# - name: Check Unit Tests
# working-directory: target/snitch_cluster
# run: |-
# grep -zoP 'All tests passed' tests.log
# - name: Check Test Applications
# working-directory: target/snitch_cluster
# run: |-
# grep -zoP 'All tests passed' apps.log