-
Notifications
You must be signed in to change notification settings - Fork 100
38 lines (31 loc) · 937 Bytes
/
riscv-qemu.yml
File metadata and controls
38 lines (31 loc) · 937 Bytes
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
name: RISC-V QEMU Tests
on:
pull_request:
# paths:
# - 'src/rvv.c'
# - 'src/diff.zig'
# - 'src/test_color_delta.zig'
push:
branches: [main, feat/riscv]
jobs:
riscv-qemu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Zig
uses: mlugg/setup-zig@v2
with:
version: 0.15.1
- name: Install QEMU
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Build RISC-V with RVV
run: |
zig build -Dtarget=riscv64-linux-gnu -Doptimize=ReleaseFast
- name: Run RVV tests
run: |
qemu-riscv64-static -cpu generic_rv64,v=true,vlen=128,elen=64 \
zig-out/bin/odiff test/png/orange.png test/png/orange_changed.png /tmp/rvv-test.png
# Verify output was created
[ -f /tmp/rvv-test.png ] && echo "✅ Done" || exit 1