2023-08-31 22:29:40 +02:00
|
|
|
name: C/C++ CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-08-31 22:54:36 +02:00
|
|
|
branches: [ "*" ]
|
2023-08-31 22:29:40 +02:00
|
|
|
pull_request:
|
|
|
|
branches: [ "main" ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: update deps
|
|
|
|
run: sudo apt-get -y update
|
|
|
|
- name: install deps
|
|
|
|
run: sudo apt install pkgconf libx11-dev libxext-dev libreadline-dev libsdl1.2-compat-dev libsdl-gfx1.2-dev
|
|
|
|
- name: make x11
|
|
|
|
run: make clean && make GUI=x11
|
|
|
|
- name: make sdl1
|
|
|
|
run: make clean && make GUI=sdl1
|
2023-09-01 21:18:12 +02:00
|
|
|
- name: install baremetal native deps
|
|
|
|
run: sudo apt-get -y install srecord
|
|
|
|
- name: make baremetal native
|
2023-08-31 22:34:58 +02:00
|
|
|
run: make clean && make GUI=baremetal
|
2023-09-01 21:18:12 +02:00
|
|
|
- name: install baremetal rv32e deps
|
|
|
|
run: sudo apt-get -y install gcc-riscv64-unknown-elf picolibc-riscv64-unknown-elf
|
|
|
|
- name: make baremetal rv32e
|
|
|
|
run: make clean && make GUI=baremetal TARGET=rv32e
|