diff --git a/.github/bin/cross-compile b/.github/bin/cross-compile index d175d43c..b1c12a4d 100755 --- a/.github/bin/cross-compile +++ b/.github/bin/cross-compile @@ -8,7 +8,15 @@ zig_target="${ZIG_TARGET}" cross_compile() { local target="$1" - local arch='arm64' + + local zig_arch + zig_arch="$(cut -d'-' -f1 <<< "${target}")" + local arch + case "${zig_arch}" in + aarch64) arch='arm64' ;; + *) arch="${zig_arch}" ;; + esac + local os os="$(cut -d'-' -f2 <<< "${target}")" local nim_os diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 27bf092f..7c063d55 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -81,6 +81,9 @@ jobs: - runs-on: ubuntu-22.04 zig_target: aarch64-linux-musl + - runs-on: ubuntu-22.04 + zig_target: riscv64-linux-musl + - runs-on: macos-12 zig_target: aarch64-macos-none