From 16bfcdce1d1f739cd0dbc87d33b03b3017b3091d Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Fri, 24 Feb 2023 21:58:37 -0500 Subject: Changed riscv to musl. --- .github/workflows/build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '.github/workflows/build.yml') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7392bb4..b2fd643 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,12 +16,13 @@ jobs: run: git submodule update --init --depth=1 - name: Build Linux run: | - sudo apt-get install musl-tools musl musl-dev gcc-12-riscv64-linux-gnu + sudo apt-get install musl-tools musl musl-dev + wget https://musl.cc/riscv64-linux-musl-cross.tgz && tar -zxvf riscv64-linux-musl-cross.tgz ./build.sh clean && BIN=lpm.x86_64-linux CC=musl-gcc ./build.sh -DLPM_STATIC -DLPM_VERSION='"'$FULL_VERSION-x86_64-linux'"' -static - ./build.sh clean && BIN=lpm.riscv64-linux CC=riscv64-linux-gnu-gcc-12 AR=riscv64-linux-gnu-ar ./build.sh -DLPM_STATIC -DLPM_VERSION='"'$FULL_VERSION-riscv64-linux'"' + ./build.sh clean && BIN=lpm.riscv64-linux CC=riscv64-linux-musl-cross/bin/riscv64-linux-musl-gcc AR=riscv64-linux-musl-cross/bin/riscv64-linux-musl-ar ./build.sh -DLPM_STATIC -DLPM_VERSION='"'$FULL_VERSION-riscv64-linux'"' -static - name: Run Tests run: | - ./lpm.x86_64-linux test t/run.lua + cp ./lpm.x86_64-linux lpm && ./lpm test t/run.lua - name: Build Android env: { ANDROID_ABI_VERSION: "26" } run: | -- cgit v1.2.3