-
Notifications
You must be signed in to change notification settings - Fork 871
64 lines (53 loc) · 2.23 KB
/
debug-smoke.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
59
60
61
62
63
64
# Build spike and run a couple of debug tests.
name: Debug Quick Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: Test debug (Ubuntu)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: |
sudo xargs apt-get install -y < .github/workflows/apt-packages.txt
- name: Download OpenOCD
run: |
git clone --recurse-submodules https://github.com/riscv/riscv-openocd.git
cd riscv-openocd
git checkout 43ea20dfbb6c815004a51106a3b2009d7f6c4940
- name: Build OpenOCD
run: |
cd riscv-openocd
./bootstrap
./configure
make -j"$(nproc 2> /dev/null || sysctl -n hw.ncpu)"
- name: Download Toolchain
run: wget --progress=dot:giga https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/download/v12.2.0-1/xpack-riscv-none-elf-gcc-12.2.0-1-linux-x64.tar.gz
- name: Install Toolchain
run: tar zxf xpack-riscv-none-elf-gcc-12.2.0-1-linux-x64.tar.gz
- name: Build Spike
run: ci-tests/build-spike
- name: Download Tests
run: |
git clone --recurse-submodules https://github.com/riscv-software-src/riscv-tests.git
cd riscv-tests
git checkout c84daca8824635b7d896003c78f9c6245997cf7a
- name: Run Tests
run: |
cd riscv-tests/debug
./gdbserver.py targets/RISC-V/spike32.py --print-failures \
--gcc $GITHUB_WORKSPACE/xpack-riscv-none-elf-gcc-12.2.0-1/bin/riscv-none-elf-gcc \
--gdb $GITHUB_WORKSPACE/xpack-riscv-none-elf-gcc-12.2.0-1/bin/riscv-none-elf-gdb \
--sim_cmd $GITHUB_WORKSPACE/build/install/bin/spike \
--server_cmd $GITHUB_WORKSPACE/riscv-openocd/src/openocd
./gdbserver.py targets/RISC-V/spike64-2.py --print-failures \
--gcc $GITHUB_WORKSPACE/xpack-riscv-none-elf-gcc-12.2.0-1/bin/riscv-none-elf-gcc \
--gdb $GITHUB_WORKSPACE/xpack-riscv-none-elf-gcc-12.2.0-1/bin/riscv-none-elf-gdb \
--sim_cmd $GITHUB_WORKSPACE/build/install/bin/spike \
--server_cmd $GITHUB_WORKSPACE/riscv-openocd/src/openocd