Skip to content

Commit

Permalink
[workflow] Fix configure script
Browse files Browse the repository at this point in the history
  • Loading branch information
aitesam961 committed Jan 11, 2024
1 parent 773f788 commit 66b931a
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build RISC-V Toolchain Multi-Lib Cross Compiler
name: Build RISC-V Toolchain Multi-Lib Cross Compiler (baremetal)

on:
workflow_dispatch:
Expand All @@ -23,11 +23,11 @@ jobs:
run: |
git clone https://github.com/riscv/riscv-gnu-toolchain
cd riscv-gnu-toolchain
./configure --prefix=/opt/riscv -
./configure --prefix=/opt/riscv --enable-multilib
make -j $(nproc)
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: riscv-toolchain-multi-cc
name: multilib-cc-baremetal
path: /opt/riscv
33 changes: 33 additions & 0 deletions .github/workflows/multilib-linux.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build RISC-V Toolchain Multi-Lib Cross Compiler (linux)

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 --enable-multilib
make linux
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: multilib-cc-linux
path: /opt/riscv
2 changes: 1 addition & 1 deletion .github/workflows/rv32newlib_tc_builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: |
git clone https://github.com/riscv/riscv-gnu-toolchain
cd riscv-gnu-toolchain
./configure --prefix=/opt/riscv -
./configure --prefix=/opt/riscv --with-arch=rv32gc --with-abi=ilp32d
make -j $(nproc)
- name: Upload Artifact
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rv64linux_tc_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
run: |
git clone https://github.com/riscv/riscv-gnu-toolchain
cd riscv-gnu-toolchain
./configure --prefix=/opt/riscv -
make -j $(nproc)
./configure --prefix=/opt/riscv
make linux
- name: Upload Artifact
uses: actions/upload-artifact@v3
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ This repository makes use of GitHub actions to build the `riscv-gnu-toolchain` f
- [ ] RV64 Linux
- [ ] RV32 Newlib
- [ ] RV32 GC
- [ ] RV64-RV32 Multi-lib Cross Compiler
- [ ] Multi-lib Cross Compiler (Baremetal)
- [ ] Multi-lib Cross Compiler (Linux)

If you require a custom configuration, consider building yourself or open an Issue with tag:`Enhancement`

Expand Down

0 comments on commit 66b931a

Please sign in to comment.