Skip to content

Commit

Permalink
Enable Linux/uClibc-ng toolchain build in CI. See riscv-collab#1566
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyMurphyTM1234 committed Oct 9, 2024
1 parent 071f07c commit 6f423b3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
mode: [newlib, linux, musl]
mode: [newlib, linux, musl, uclibc]
target: [rv32gc-ilp32d, rv64gc-lp64d]
compiler: [gcc, llvm]
exclude:
- mode: musl
target: rv32gc-ilp32d
- mode: musl
compiler: llvm
- mode: uclibc
compiler: llvm
steps:
- name: Remove unneeded frameworks to recover disk space
run: |
Expand Down Expand Up @@ -59,7 +61,7 @@ jobs:
- name: recover space
run: |
sudo du -hs / 2> /dev/null || true
sudo rm -rf binutils dejagnu gcc gdb glibc llvm musl newlib pk qemu spike || true
sudo rm -rf binutils dejagnu gcc gdb glibc llvm musl newlib pk qemu spike uclibc-ng || true
sudo du -hs / 2> /dev/null || true
- name: tarball build
Expand All @@ -74,6 +76,8 @@ jobs:
MODE="glibc";;
"musl")
MODE="musl";;
"uclibc")
MODE="uclibc-ng";;
*)
MODE="elf";;
esac
Expand Down Expand Up @@ -161,6 +165,8 @@ jobs:
MODE="glibc";;
"musl")
MODE="musl";;
"uclibc")
MODE="uclibc";;
*)
MODE="elf";;
esac
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/nightly-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,16 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
mode: [newlib, linux, musl]
mode: [newlib, linux, musl uclibc]
target: [rv32gc-ilp32d, rv64gc-lp64d]
compiler: [gcc, llvm]
exclude:
- mode: musl
target: rv32gc-ilp32d
- mode: musl
compiler: llvm
- mode: uclibc
compiler: llvm
steps:
- name: Remove unneeded frameworks to recover disk space
run: |
Expand Down Expand Up @@ -91,7 +93,7 @@ jobs:
- name: recover space
run: |
sudo du -hs / 2> /dev/null || true
sudo rm -rf binutils dejagnu gcc gdb glibc llvm musl newlib pk qemu spike || true
sudo rm -rf binutils dejagnu gcc gdb glibc llvm musl newlib pk qemu spike uclibc-ng || true
sudo du -hs / 2> /dev/null || true
- name: tarball build
Expand All @@ -106,6 +108,8 @@ jobs:
MODE="glibc";;
"musl")
MODE="musl";;
"uclibc")
MODE="uclibc-ng";;
*)
MODE="elf";;
esac
Expand Down

0 comments on commit 6f423b3

Please sign in to comment.