-
Notifications
You must be signed in to change notification settings - Fork 82
30 lines (25 loc) · 1.09 KB
/
simulate.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
name: Simulate all apps
on: [pull_request]
jobs:
simulate:
runs-on: ubuntu-latest
container:
image: ghcr.io/vlsi-lab/x-heep-toolchain:experimental
name: Simulate all apps. All must pass.
steps:
- name: Checkout the pushed code.
uses: actions/checkout@v3
- name: Configure the job container and simulate all apps
run: |
# Create the virtual environment and install the requirements.
conda init bash
source /root/.bashrc
conda activate core-v-mini-mcu
make clean-all
# All peripherals are included to make sure all apps can be built.
sed 's/is_included: "no",/is_included: "yes",/' -i mcu_cfg.hjson
sed 's/num_channels: 0x1,/num_channels: 0x4,/' -i mcu_cfg.hjson
sed 's/num_channels_per_master_port: 0x1,/num_channels_per_master_port: 0x4,/' -i mcu_cfg.hjson
# The MCU is generated with various memory banks to avoid example code not fitting.
make mcu-gen X_HEEP_CFG=configs/ci.hjson
python3 .github/workflows/test-apps/test_apps.py