Also test against QEMU. #14
This file contains 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: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Dependencies | |
run: sudo apt install g++ g++-riscv64-linux-gnu qemu-user | |
- name: Build Host 32 | |
run: | | |
rm -rf out | |
make -j out/rv32/test | |
- name: Test Host 32 | |
run: out/rv32/test | |
- name: Build Host 64 | |
run: | | |
rm -rf out | |
make -j out/rv64/test | |
- name: Test Host 64 | |
run: out/rv64/test | |
- name: Build Cross 64 | |
run: | | |
rm -rf out | |
CXX=riscv64-linux-gnu-g++ make -j out/rv64/test | |
- name: Test Cross 64 | |
run: qemu-riscv64 -L /usr/riscv64-linux-gnu/ out/rv64/test |