Improved and upgraded CI workflow pipelines. #12
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: Rust Build CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
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 |