Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] split SoftwareFrameworkTests from simple testbench simulation #820

Merged
merged 2 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 27 additions & 7 deletions .github/workflows/Processor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,22 @@ on:
- 'rtl/**'
- 'sw/**'
- 'sim/**'
- '.github/workflows/**'
pull_request:
branches:
- main
paths:
- 'rtl/**'
- 'sw/**'
- 'sim/**'
- '.github/workflows/**'
workflow_dispatch:

jobs:

Linux:

Software:
runs-on: ubuntu-latest
name: '🐧 Ubuntu | Shell script'

steps:

Expand All @@ -31,17 +33,35 @@ jobs:
- name: '⚙️ Build Software Framework Tests'
uses: docker://ghcr.io/stnolting/neorv32/sim
with:
args: ./do.py BuildAndInstallSoftwareFrameworkTests
args: ./do.py SoftwareFrameworkTests


Simple:
runs-on: ubuntu-latest
name: 'Simple testbench'

steps:

- name: '🧰 Repository Checkout'
uses: actions/checkout@v4

- name: '🚧 Run Processor Hardware Tests with shell script'
- name: '🚧 Build and install software; then simulate with shell script'
uses: docker://ghcr.io/stnolting/neorv32/sim
# Redirect UART0 TX to text.io simulation output via <UARTx_SIM_MODE> user flags
with:
args: make -C sw/example/processor_check sim-check
args: >-
make -C sw/example/processor_check
clean_all
USER_FLAGS+="-DUART0_SIM_MODE -DUART1_SIM_MODE -flto"
EFFORT=-Os
MARCH=rv32ima_zicsr_zifencei
info
all
sim-check


VUnit-Container:
VUnit:
runs-on: ubuntu-latest
name: '🛳️ Container | VUnit'

steps:

Expand Down
7 changes: 2 additions & 5 deletions do.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
ROOT = Path(__file__).parent


def task_BuildAndInstallSoftwareFrameworkTests():
def task_SoftwareFrameworkTests():
return {
"actions": [
# Check toolchain
Expand All @@ -24,11 +24,8 @@ def task_BuildAndInstallSoftwareFrameworkTests():
"make -C sw/example clean_all exe",
# Compile and install bootloader
"make -C sw/bootloader clean_all info bootloader",
# Compile and install test application, redirect UART0 TX to text.io simulation output via <UARTx_SIM_MODE> user flags
"echo 'Compiling and installing CPU/Processor test application'",
"make -C sw/example/processor_check clean_all USER_FLAGS+=-DUART0_SIM_MODE USER_FLAGS+=-DUART1_SIM_MODE USER_FLAGS+=-flto EFFORT=-Os MARCH=rv32ima_zicsr_zifencei info all",
],
"doc": "Build all sw/example/*; install bootloader and processor check",
"doc": "Build all sw/example/*; install bootloader",
}


Expand Down