aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authoralexsifivetw <alex.chiang@sifive.com>2023-06-03 16:23:57 -0700
committeralexsifivetw <alex.chiang@sifive.com>2023-06-03 16:23:57 -0700
commit147bb3eeca7df9755893b3b2b3ba8be4219a0a78 (patch)
tree680bfda578b017cccc32fa7426fd41e2b018e632 /.github
parent4cce1a047ebd03b282a215549964281a5596d947 (diff)
downloadriscv-gnu-toolchain-147bb3eeca7df9755893b3b2b3ba8be4219a0a78.zip
riscv-gnu-toolchain-147bb3eeca7df9755893b3b2b3ba8be4219a0a78.tar.gz
riscv-gnu-toolchain-147bb3eeca7df9755893b3b2b3ba8be4219a0a78.tar.bz2
Add prebuilt clang and qemu to release workflow
Diffstat (limited to '.github')
-rwxr-xr-x.github/setup-apt.sh2
-rw-r--r--.github/workflows/nightly-release.yaml15
2 files changed, 14 insertions, 3 deletions
diff --git a/.github/setup-apt.sh b/.github/setup-apt.sh
index b1bd427..49efd02 100755
--- a/.github/setup-apt.sh
+++ b/.github/setup-apt.sh
@@ -3,7 +3,7 @@
# install OS prerequisites
dpkg --add-architecture i386
apt update
-apt install -y autoconf automake autotools-dev curl python3 libmpc-dev libmpfr-dev \
+apt 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 git ninja-build cmake libglib2.0-dev expect \
device-tree-compiler
diff --git a/.github/workflows/nightly-release.yaml b/.github/workflows/nightly-release.yaml
index 011b453..8c51fec 100644
--- a/.github/workflows/nightly-release.yaml
+++ b/.github/workflows/nightly-release.yaml
@@ -68,8 +68,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]}
- sudo make -j $(nproc) ${{ matrix.mode }}
+ BUILD_TOOLCHAIN="./configure --prefix=/opt/riscv --with-arch=${TARGET_TUPLE[0]} --with-abi=${TARGET_TUPLE[1]}"
+ if [ "${{ matrix.mode }}" == "linux" ]; then # build toolchain with llvm
+ $BUILD_TOOLCHAIN --enable-llvm --enable-linux
+ sudo make -j $(nproc) all build-sim SIM=qemu
+ else
+ $BUILD_TOOLCHAIN
+ sudo make -j $(nproc) ${{ matrix.mode }}
+ fi
+
+ - name: build qemu
+ if: "${{ matrix.mode }}" == "linux"
+ run: |
+ make -j$(nproc) build-sim SIM=qemu
- name: tarball build
run: tar czvf riscv.tar.gz -C /opt/ riscv/