Skip to content

Commit

Permalink
test: Add CI test cpu__test
Browse files Browse the repository at this point in the history
  • Loading branch information
howjmay committed Feb 9, 2024
1 parent 0b3fe83 commit 59bc5cd
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: test

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
cross_compile_tests:
runs-on: ubuntu-22.04
steps:
- name: checkout code
uses: actions/checkout@v3.2.0
- name: setup riscv toolchain
run: |
mkdir /opt/riscv
export PATH=$PATH:/opt/riscv/bin
wget https://github.com/howjmay/prebuilt-riscv-spike/releases/download/latest/riscv.tar.gz
sudo tar -xzf riscv.tar.gz -C /opt/
- name: run tests
run: |
export PATH=$PATH:/opt/riscv/bin
export SIMULATOR_TYPE=qemu
export ENABLE_TEST_ALL=true
sh scripts/cross-test.sh

0 comments on commit 59bc5cd

Please sign in to comment.