Skip to content

Commit f2d2743

Browse files
committed
test: Add CI test cpu_test
1 parent 01fa6ac commit f2d2743

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/test.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
cross_compile_tests:
11+
runs-on: ubuntu-22.04
12+
steps:
13+
- name: checkout code
14+
uses: actions/checkout@v3.2.0
15+
- name: setup riscv toolchain
16+
run: |
17+
mkdir /opt/riscv
18+
export PATH=$PATH:/opt/riscv/bin
19+
wget https://github.com/howjmay/prebuilt-riscv-spike/releases/download/latest/riscv.tar.gz
20+
sudo tar -xzf riscv.tar.gz -C /opt/
21+
22+
- name: run tests
23+
run: |
24+
export PATH=$PATH:/opt/riscv/bin
25+
export SIMULATOR_TYPE=qemu
26+
export ENABLE_TEST_ALL=true
27+
sh scripts/cross-test.sh

0 commit comments

Comments
 (0)