Skip to content

Commit cf79710

Browse files
committed
Add qemu based github actions test
1 parent ef79f4f commit cf79710

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/riscv-qemu.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: RISC-V QEMU Tests
2+
3+
on:
4+
pull_request:
5+
# paths:
6+
# - 'src/rvv.c'
7+
# - 'src/diff.zig'
8+
# - 'src/test_color_delta.zig'
9+
10+
jobs:
11+
riscv:
12+
name: ubuntu-24.04-riscv
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: uraimo/run-on-arch-action@v3
17+
with:
18+
arch: riscv64
19+
distro: ubuntu24.04
20+
githubToken: ${{ github.token }}
21+
dockerRunArgs: |
22+
--volume "${PWD}:/opt/odiff"
23+
install: |
24+
apt-get update
25+
apt-get install -y nasm
26+
run: |
27+
wget https://ziglang.org/download/0.15.1/zig-riscv64-linux-0.15.1.tar.xz
28+
tar -xf zig-riscv64-linux-0.15.1.tar.xz
29+
export PATH="$PWD/zig-riscv64-linux-0.15.1:$PATH"
30+
zig build test-all -Dtarget=riscv64-linux -Dcpu=generic_rv64+rva23u64 -Doptimize=ReleaseFast

0 commit comments

Comments
 (0)