Skip to content

Commit e44b985

Browse files
committed
add cva6 toolchain build
1 parent ee151d5 commit e44b985

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/build-cva6-gcc.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build CVA6 Toolchain
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
build-cva6-toolchain:
11+
name: Build CVA6 Toolchain
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Clone CVA6 Repository
16+
run: |
17+
git clone https://github.com/openhwgroup/cva6.git
18+
cd cva6
19+
mkdir custom_toolchain_build
20+
export INSTALL_DIR=$(pwd)/custom_toolchain_build
21+
echo "INSTALL_DIR: $INSTALL_DIR"
22+
23+
- name: Fetch and Build Toolchain
24+
run: |
25+
cd cva6/util/toolchain-builder
26+
bash get-toolchain.sh
27+
bash build-toolchain.sh $INSTALL_DIR
28+
29+
- name: Archive Build Results
30+
run: |
31+
cd cva6
32+
tar -czvf custom_toolchain_build.tar.gz custom_toolchain_build/
33+
if: success()
34+
35+
- name: Upload Build Artifacts
36+
uses: actions/upload-artifact@v3
37+
with:
38+
name: cva6-toolchain-build
39+
path: cva6/custom_toolchain_build.tar.gz
40+

0 commit comments

Comments
 (0)