Skip to content

Commit

Permalink
[ci] split SoftwareFrameworkTests from simple testbench simulation (#820
Browse files Browse the repository at this point in the history
)
  • Loading branch information
stnolting committed Feb 21, 2024
2 parents af0633d + fc81b10 commit 0885938
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 12 deletions.
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

0 comments on commit 0885938

Please sign in to comment.