aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build.yml7
1 files changed, 4 insertions, 3 deletions
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: |