Add Riscv Example (#1268)

Add Riscv example. Risc-V CI. Install baremetal toolchain. Prevent imported crt file from messing up linker search.
This commit is contained in:
Chuck Benedict
2024-07-31 05:43:47 -07:00
committed by GitHub
parent 7664d0568e
commit 563e677b08
9 changed files with 172 additions and 28 deletions

View File

@@ -319,6 +319,15 @@ jobs:
cd resources/testfragments
../../build/c3c compile --reloc=none --target wasm32 -g0 --link-libc=no --no-entry -Os wasm4.c3
- name: Install QEMU and Risc-V toolchain
run: |
sudo apt-get install opensbi qemu-system-misc u-boot-qemu gcc-riscv64-unknown-elf
- name: Compile and run Baremetal Risc-V Example
run: |
cd resources/examples/embedded/riscv-qemu
make C3C_PATH=../../../../build/ run
- name: Build testproject direct linker
run: |
cd resources/testproject