Build RISC-V Toolchain RV64GCV #2
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: Build RISC-V Toolchain RV64GCV | |
on: | |
workflow_dispatch: | |
inputs: | |
build: | |
description: 'Run the RISC-V Toolchain build' | |
required: true | |
default: 'yes' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Install Dependencies | |
run: sudo apt-get install -y autoconf automake autotools-dev curl python3 python3-pip libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev ninja-build git cmake libglib2.0-dev | |
- name: Build RISC-V Toolchain | |
run: | | |
git clone https://github.com/riscv/riscv-gnu-toolchain | |
cd riscv-gnu-toolchain | |
./configure --prefix=/opt/riscv --with-arch=rv64gcv --with-abi=lp64d --enable-multilib | |
make -j $(nproc) | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: riscv-toolchain-rv64gcv-baremetal | |
path: /opt/riscv |