Skip to content

Update app-testing script #564

Update app-testing script

Update app-testing script #564

Workflow file for this run

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