-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (51 loc) · 1.64 KB
/
build-cva6-gcc.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Build CVA6 Toolchain
on:
push:
release:
types: [published]
jobs:
build-cva6-toolchain:
name: Build CVA6 Toolchain
runs-on: ubuntu-latest
steps:
- name: Clone CVA6 Repository
run: |
git clone https://github.com/openhwgroup/cva6.git
cd cva6
mkdir custom_toolchain_build
export INSTALL_DIR=$(pwd)/custom_toolchain_build
echo "INSTALL_DIR: $INSTALL_DIR"
- name: Fetch and Build Toolchain
run: |
cd cva6
export INSTALL_DIR=$(pwd)/custom_toolchain_build
cd util/toolchain-builder
sudo apt-get install autoconf automake autotools-dev curl git libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool bc zlib1g-dev
echo "INSTALL_DIR: $INSTALL_DIR"
bash get-toolchain.sh
bash build-toolchain.sh $INSTALL_DIR
- name: Archive Build Results
run: |
cd cva6
tar -czvf custom_toolchain_build.tar.gz custom_toolchain_build/
if: success()
- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
with:
name: cva6-toolchain-build
path: cva6/custom_toolchain_build.tar.gz
upload-to-release:
name: Upload to GitHub Release
needs: build-cva6-toolchain
runs-on: ubuntu-latest
steps:
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: cva6-toolchain-build
- name: Upload MLIR build to GitHub Release
uses: softprops/action-gh-release@v1
with:
files: cva6/custom_toolchain_build.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}