-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (55 loc) · 1.74 KB
/
compliance.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Licensed under the Apache-2.0 license
name: RISC-V Compliance tests
on:
push:
branches:
- riscv-compliance
schedule:
- cron: '0 0 * * *'
jobs:
compliance:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt update && \
sudo apt upgrade -y && \
sudo apt install -y \
device-tree-compiler \
gcc-multilib \
gcc-riscv64-unknown-elf \
opam \
z3
- name: Install RISC-V Python tools
run: |
pip install git+https://github.com/riscv/riscv-isac.git@dev && \
pip install git+https://github.com/riscv/riscof.git
- name: Install riscv-isa-sim
run: |
git clone https://github.com/riscv-software-src/riscv-isa-sim.git && \
cd riscv-isa-sim && \
mkdir build && \
cd build && \
../configure --prefix=/usr && \
make -j$(nproc) && \
sudo make install && \
cd ../..
- name: Install Sail
run: |
opam init -a -y && \
opam install -y sail && \
echo "$HOME/.opam/default/bin" >> "$GITHUB_PATH"
- name: Install Sail RISC-V
run: |
git clone https://github.com/riscv/sail-riscv.git && \
cd sail-riscv && \
make c_emulator/riscv_sim_RV32 ARCH=32 -j$(nproc) && \
sudo cp -r c_emulator/riscv_sim_RV32 /usr/bin && \
cd ..
- name: Install Rust tools
run: rustup update
- name: Checkout RISC-V tests
run: git clone https://github.com/riscv-non-isa/riscv-arch-test.git emulator/compliance-test/riscv-arch-test
- name: Run compliance tests
run: cargo run -p compliance-test -- --test_root_path emulator/compliance-test/riscv-arch-test