ci: Add riscv64 build

This commit is contained in:
Esteban Blanc 2022-05-12 14:22:29 +02:00 committed by Esteban Blanc
parent 1f5e53f5eb
commit 1b47539c71
2 changed files with 10 additions and 0 deletions

9
.github/env.sh vendored
View file

@ -23,6 +23,15 @@ case "$1" in
target_linker="aarch64-linux-gnu-gcc"
target_cc="aarch64-linux-gnu-gcc"
;;
riscv64*)
arch="riscv64"
sysroot="/usr/lib/riscv64-linux-gnu/"
ubuntu_cross_pkg_list="gcc-riscv64-linux-gnu"
# YES they are the same but otherwise it fails
target_linker="riscv64-linux-gnu-gcc"
target_cc="riscv64-linux-gnu-gcc"
;;
x86_64*)
target_linker="gcc"

View file

@ -71,6 +71,7 @@ jobs:
target:
- x86_64-unknown-linux-gnu
- aarch64-unknown-linux-gnu
- riscv64gc-unknown-linux-gnu
rust:
- stable
- 1.51.0