aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick O'Neill <patrick@rivosinc.com>2023-06-05 09:22:50 -0700
committerPatrick O'Neill <patrick@rivosinc.com>2023-06-05 09:22:50 -0700
commit45e6d1b73c8cf7ae132915425dcccb1fee1f627c (patch)
tree70d468c0ed753cba5b200aac955bd81614ea23c0
parent9f73648a47d92fb4b0487e5825f6095ad61a7f9f (diff)
downloadriscv-gnu-toolchain-45e6d1b73c8cf7ae132915425dcccb1fee1f627c.zip
riscv-gnu-toolchain-45e6d1b73c8cf7ae132915425dcccb1fee1f627c.tar.gz
riscv-gnu-toolchain-45e6d1b73c8cf7ae132915425dcccb1fee1f627c.tar.bz2
Add llvm to PR ci
-rw-r--r--.github/workflows/build.yaml15
1 files changed, 13 insertions, 2 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 339cecd..00e00ba 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -16,9 +16,14 @@ jobs:
os: [ubuntu-20.04, ubuntu-22.04]
mode: [newlib, linux, musl]
target: [rv32gc-ilp32d, rv64gc-lp64d]
+ compiler: [gcc, llvm]
exclude:
- mode: musl
target: rv32gc-ilp32d
+ - mode: newlib
+ compiler: llvm
+ - mode: musl
+ compiler: llvm
steps:
- uses: actions/checkout@v2
@@ -33,13 +38,19 @@ jobs:
- name: build toolchain
run: |
TARGET_TUPLE=($(echo ${{ matrix.target }} | tr "-" "\n"))
- ./configure --prefix=/opt/riscv --with-arch=${TARGET_TUPLE[0]} --with-abi=${TARGET_TUPLE[1]}
+ BUILD_TOOLCHAIN="./configure --prefix=/opt/riscv --with-arch=${TARGET_TUPLE[0]} --with-abi=${TARGET_TUPLE[1]}"
+ if [ "${{ matrix.compiler }}" == "llvm" ]; then # build toolchain with llvm
+ $BUILD_TOOLCHAIN --enable-llvm --enable-linux
+ else
+ $BUILD_TOOLCHAIN
+ fi
sudo make -j $(nproc) ${{ matrix.mode }}
- name: make report
if: |
matrix.os == 'ubuntu-20.04'
&& (matrix.mode == 'linux' || matrix.mode == 'newlib')
+ && matrix.compiler == 'gcc'
run: |
sudo make report-${{ matrix.mode }} -j $(nproc)
@@ -58,7 +69,7 @@ jobs:
*)
MODE="elf";;
esac
- echo ::set-output name=TOOLCHAIN_NAME::riscv$BITS-$MODE-${{ matrix.os }}-nightly
+ echo ::set-output name=TOOLCHAIN_NAME::riscv$BITS-$MODE-${{ matrix.os }}-${{ matrix.compiler }}-nightly
- uses: actions/upload-artifact@v2
with: