-
Notifications
You must be signed in to change notification settings - Fork 10
40 lines (36 loc) · 1.18 KB
/
make-examples.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: C/C++ CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
# Do not ignore bash profile files. From:
defaults:
run:
shell: bash -l {0}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up toolchain
run: |
wget https://github.com/ucb-bar/RISC-V-Ready-To-Run/releases/download/v2024.06.04/riscv64-unknown-toolchain.tar.xz
tar -xf riscv64-unknown-toolchain.tar.xz
- name: Make default
run: |
rm -rf ./build/
export RISCV="$GITHUB_WORKSPACE/riscv64-unknown-toolchain"
export PATH="$RISCV/bin:$PATH"
cmake -S ./ -B ./build/ -D CMAKE_BUILD_TYPE=Debug -D CMAKE_TOOLCHAIN_FILE=./riscv-gcc.cmake
cmake --build ./build/ --target app
- name: Make for BearlyML
run: |
rm -rf ./build/
export RISCV="$GITHUB_WORKSPACE/riscv64-unknown-toolchain"
export PATH="$RISCV/bin:$PATH"
cmake -S ./ -B ./build/ -D CMAKE_BUILD_TYPE=Debug -D CMAKE_TOOLCHAIN_FILE=./riscv-gcc.cmake -D CHIP=bearlyml
cmake --build ./build/ --target app