1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-29 19:30:36 +02:00

Add RISCV to CI and makefile

This commit is contained in:
Ekaitz Zarraga 2022-01-19 11:09:20 +01:00
parent cbd72e71a7
commit 797fe5067c
2 changed files with 10 additions and 1 deletions

View file

@ -4,6 +4,7 @@ before_script:
- dpkg --add-architecture i386
- dpkg --add-architecture arm64
- dpkg --add-architecture armhf
- dpkg --add-architecture riscv64
- apt-get update -qq
- apt-get install -y
libc6-dev:amd64 gcc make
@ -11,8 +12,10 @@ before_script:
gcc-i686-linux-gnu libc6-dev-i386-cross libc6:i386
gcc-aarch64-linux-gnu libc6-dev-arm64-cross libc6:arm64
gcc-arm-linux-gnueabihf libc6-dev-armhf-cross libc6:armhf
gcc-riscv64-linux-gnu libc6-dev-riscv64-cross libc6:riscv64
- update-binfmts --enable qemu-aarch64
- update-binfmts --enable qemu-arm
- update-binfmts --enable qemu-riscv64
x86-64:
stage: test
@ -38,3 +41,8 @@ armhf-thumb:
stage: test
script:
- make -C tests test-armv7 CC_ARMv7="arm-linux-gnueabihf-gcc -mthumb"
riscv:
stage: test
script:
- make -C tests test-riscv CC_RISCV="riscv64-linux-gnu-gcc"

View file

@ -14,7 +14,8 @@ TARGETS ?= native ia32 aarch64 armv7 riscv
# libc6-dev:amd64 gcc make \
# qemu binfmt-support qemu-user-static \
# gcc-i686-linux-gnu libc6-dev-i386-cross libc6:i386 \
# gcc-aarch64-linux-gnu libc6-dev-arm64-cross libc6:arm64
# gcc-aarch64-linux-gnu libc6-dev-arm64-cross libc6:arm64\
# gcc-riscv64-linux-gnu libc6-dev-riscv64-cross libc6:riscv64
#
CC = gcc
CC_IA32 ?= guix environment --pure -s i686-linux --ad-hoc gcc-toolchain -- gcc