ci: add ci test for run ACT on sail and Spike (#468) #368
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: CI test | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on pull request events but only for the main & dev branch | |
pull_request: | |
branches: [ main , dev ] | |
# Triggers the workflow on push events | |
push: | |
branches: [ main , dev ] | |
# Allows you to run this workflow Actions manually | |
workflow_dispatch: | |
# Triggers the action 2am every day | |
schedule: | |
- cron: "0 2 * * *" | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
ACT-sail-spike: | |
runs-on: ubuntu-latest | |
container: ghcr.io/riscv-software-src/riscof/act:latest | |
strategy: | |
fail-fast: false | |
matrix: | |
isa_group: | |
- RV32IMCZicsr_Zifencei | |
- RV64IMCZicsr_Zifencei | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
- name: Config riscof | |
run: | | |
git config --global --add safe.directory '*' | |
riscof setup --dutname=spike | |
cp .github/isa_templates/${{ matrix.isa_group }}.yaml spike/spike_isa.yaml | |
- name: Run riscof | |
run: | | |
riscof --verbose debug run --suite . --env ./riscv-test-suite/env |