-
Notifications
You must be signed in to change notification settings - Fork 20
66 lines (54 loc) · 2.04 KB
/
Copy pathmain.yml
File metadata and controls
66 lines (54 loc) · 2.04 KB
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
59
60
61
62
63
64
65
66
name: Pcore-riscof
on:
push:
branches:
- '**' # Trigger on all branches (including those from forks)
pull_request:
branches:
- main # Trigger on PRs targeting the main branch
jobs:
pcore-verification:
runs-on: ubuntu-latest
steps:
- name: Repository Checkout
uses: actions/checkout@v3
with:
path: pcore
- name: Install verilator and riscof
run: |
sudo apt-get update
sudo apt-get install -y python3 python3-pip python3-venv
pip3 install --upgrade pip
sudo apt-get install -y gcc git autoconf automake libtool curl make unzip
sudo apt-get install autoconf automake autotools-dev curl python3 python3-pip libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev ninja-build git cmake libglib2.0-dev libslirp-dev
sudo apt-get install verilator device-tree-compiler
pip3 install git+https://github.com/riscv/riscof.git
- name: Setup toolchain
run: |
wget -c https://github.com/riscv-collab/riscv-gnu-toolchain/releases/download/2023.04.29/riscv64-elf-ubuntu-20.04-nightly-2023.04.29-nightly.tar.gz
tar -xzf riscv64-elf-ubuntu-20.04-nightly-2023.04.29-nightly.tar.gz
echo $GITHUB_WORKSPACE/riscv/bin >> $GITHUB_PATH
- name: Update Submodule to clone arch-tests
run: |
cd pcore/verif
git submodule update --init
- name: Setup SAIL-RISCV Model
run: |
tar -xzf pcore/verif/bin/sail-riscv.tar.gz
echo $GITHUB_WORKSPACE/sail-riscv >> $GITHUB_PATH
- name: Install riscv-isac
run: |
cd pcore/verif/bin/riscv-isac
pip3 install --editable .
- name: Run Verification Framework
run: |
cd pcore/verif
chmod +x run-tests.sh
./run-tests.sh
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: Test_report
path: |
pcore/verif/riscof_work/report.html
pcore/verif/riscof_work/style.css