Add qemu based github actions test #21
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: | |
| name: ubuntu-24.04-riscv | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: uraimo/run-on-arch-action@v3 | |
| with: | |
| arch: riscv64 | |
| distro: ubuntu24.04 | |
| githubToken: ${{ github.token }} | |
| dockerRunArgs: | | |
| --volume "${PWD}:/opt/odiff" | |
| install: | | |
| apt-get update | |
| apt-get install -y zig nasm | |
| run: | | |
| zig build test-all -Dtarget=riscv64-linux -Dcpu=generic_rv64+rva23u64 -Doptimize=ReleaseFast |