Skip to content

test-5

test-5 #5

Workflow file for this run

name: Build CVA6 Toolchain
on:
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
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 }}