ADD: Major Refactor #7
Workflow file for this run
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: 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-GNU-Toolchain-Prebuilt/releases/download/v2024.06.04/riscv64-unknown-toolchain.tar.xz | |
tar -xf riscv64-unknown-toolchain.tar.xz | |
- name: Make default (spike) | |
run: | | |
export PATH="$GITHUB_WORKSPACE/riscv64-unknown-toolchain/bin/:$PATH" | |
make clean | |
make TARGET=examples/chipyard-tests/hello | |
- name: Make bearlyml (RV64) | |
run: | | |
export PATH="$GITHUB_WORKSPACE/riscv64-unknown-toolchain/bin/:$PATH" | |
make clean | |
make CHIP=bearlyml TARGET=./examples/chipyard-tests/hello/ | |
- name: Make fe310 (RV32) | |
run: | | |
export PATH="$GITHUB_WORKSPACE/riscv64-unknown-toolchain/bin/:$PATH" | |
make clean | |
make CHIP=fe310 TARGET=./examples/chipyard-tests/hello/ |