forked from pulp-platform/occamy
-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (53 loc) · 1.54 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
# Copyright 2024 KU Leuven.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
# Yunhao Deng <[email protected]>
# Run functional regression checks
name: ci
on: [pull_request]
jobs:
########
# Docs #
########
# docs:
# name: Build documentation
# runs-on: ubuntu-22.04
# container:
# image: ghcr.io/pulp-platform/occamy:main
# steps:
# - uses: actions/checkout@v2
# - name: Build docs
# run: |
# bender update && bender checkout
# mkdocs build
#################################################
# Occamy System Software + Hardware Compilation #
#################################################
occamy-verilator:
name: Simulation with Verilator
runs-on: ubuntu-22.04
container:
image: ghcr.io/kuleuven-micas/snax:main
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Compile Bootrom
run: |
echo -e "Compiling Bootrom"
make bootrom
- name: Compile SW
run: |
echo -e "Compiling SW"
make sw CFG_OVERRIDE=target/sw/cfg/occamy_cfg/hemaia.hjson
- name: Compile RTL
run: |
make rtl CFG_OVERRIDE=target/rtl/cfg/occamy_cfg/hemaia.hjson
- name: Compile Verilator Binary
run: |
make occamy_system_vlt
- name: Run Tests
working-directory: target/sim
run: |-
./run.py --simulator verilator \
sw/sim_elf.yaml -j