25
25
jobs :
26
26
27
27
ACT-sail-spike :
28
+ name : ACT-sail-spike (RV${{ matrix.xlen }})
28
29
runs-on : ubuntu-22.04
29
30
strategy :
30
31
fail-fast : false
31
32
matrix :
32
- isa_group :
33
- - RVIMAFDCZicsr_Zifencei
33
+ xlen : [32, 64]
34
34
35
35
steps :
36
36
@@ -45,19 +45,12 @@ jobs:
45
45
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 pkg-config
46
46
pip3 install git+https://github.com/riscv/riscof.git
47
47
48
- - name : Build RISCV-GNU Toolchain (32 bit)
48
+ - name : Build RISCV-GNU Toolchain (${{ matrix.xlen }} bit)
49
49
run : |
50
- wget -c https://github.com/riscv-collab/riscv-gnu-toolchain/releases/download/2024.09.03/riscv32-elf-ubuntu-20.04-gcc-nightly-2024.09.03-nightly.tar.gz
51
- tar -xzf riscv32-elf-ubuntu-20.04-gcc-nightly-2024.09.03-nightly.tar.gz
52
- mv riscv riscv32
53
- echo $GITHUB_WORKSPACE/riscv32/bin >> $GITHUB_PATH
54
-
55
- - name : Build RISCV-GNU Toolchain (64 bit)
56
- run : |
57
- wget -c https://github.com/riscv-collab/riscv-gnu-toolchain/releases/download/2024.09.03/riscv64-elf-ubuntu-20.04-gcc-nightly-2024.09.03-nightly.tar.gz
58
- tar -xzf riscv64-elf-ubuntu-20.04-gcc-nightly-2024.09.03-nightly.tar.gz
59
- mv riscv riscv64
60
- echo $GITHUB_WORKSPACE/riscv64/bin >> $GITHUB_PATH
50
+ wget -c https://github.com/riscv-collab/riscv-gnu-toolchain/releases/download/2024.09.03/riscv${{ matrix.xlen }}-elf-ubuntu-20.04-gcc-nightly-2024.09.03-nightly.tar.gz
51
+ tar -xzf riscv${{ matrix.xlen }}-elf-ubuntu-20.04-gcc-nightly-2024.09.03-nightly.tar.gz
52
+ mv riscv riscv${{ matrix.xlen }}
53
+ echo $GITHUB_WORKSPACE/riscv${{ matrix.xlen }}/bin >> $GITHUB_PATH
61
54
62
55
- name : Install riscv-isac
63
56
run : |
@@ -87,16 +80,10 @@ jobs:
87
80
curl --location https://github.com/rems-project/sail/releases/download/0.18-linux-binary/sail.tar.gz | sudo tar xvz --directory=/usr/local --strip-components=1
88
81
git clone https://github.com/riscv/sail-riscv.git
89
82
cd sail-riscv
90
- ARCH=RV32 make
91
- ARCH=RV64 make
83
+ ARCH=RV${{ matrix.xlen }} make
92
84
echo $PWD/c_emulator >> $GITHUB_PATH
93
85
94
- - name : Config and run riscof for RV32
95
- run : |
96
- cd riscof-plugins/rv32
97
- riscof run --config config.ini --suite ../../riscv-test-suite/rv32i_m/ --env ../../riscv-test-suite/env
98
-
99
- - name : Config and run riscof for RV64
86
+ - name : Config and run riscof for RV${{ matrix.xlen }}
100
87
run : |
101
- cd riscof-plugins/rv64
102
- riscof run --config config.ini --suite ../../riscv-test-suite/rv64i_m / --env ../../riscv-test-suite/env
88
+ cd riscof-plugins/rv${{ matrix.xlen }}
89
+ riscof run --config config.ini --suite ../../riscv-test-suite/rv${{ matrix.xlen }}i_m / --env ../../riscv-test-suite/env
0 commit comments