Add linux.riscv64 precompiled support

This commit is contained in:
Meng Zhuo
2024-05-30 19:20:21 +08:00
parent ac8fb00504
commit 15de97e33f
6 changed files with 66 additions and 1 deletions

15
build/linux.riscv64/build Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
set -xe
{
tar xzv --strip-components=1
chmod +x striptests && ./striptests
mkdir "$TARGETNAME"
cabal update
( IFS=';'; cabal build --enable-executable-static )
find . -name shellcheck -type f -exec mv {} "$TARGETNAME/" \;
ls -l "$TARGETNAME"
"$TARGET-strip" -s "$TARGETNAME/shellcheck"
ls -l "$TARGETNAME"
qemu-riscv64-static "$TARGETNAME/shellcheck" --version
} >&2
tar czv "$TARGETNAME"