diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index c581e4a27..8a598cf1c 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -78,7 +78,9 @@ jobs: - x86_64-unknown-linux-gnu - x86_64-unknown-linux-musl - aarch64-unknown-linux-gnu + - aarch64-unknown-linux-musl - armv7-unknown-linux-gnueabihf + - armv7-unknown-linux-musleabihf - riscv64gc-unknown-linux-gnu extra: ['bin'] include: @@ -104,8 +106,12 @@ jobs: os: ubuntu-22.04 - target: aarch64-unknown-linux-gnu os: ubuntu-22.04 + - target: aarch64-unknown-linux-musl + os: ubuntu-22.04 - target: armv7-unknown-linux-gnueabihf os: ubuntu-22.04 + - target: armv7-unknown-linux-musleabihf + os: ubuntu-22.04 - target: riscv64gc-unknown-linux-gnu os: ubuntu-latest diff --git a/.github/workflows/release-pkg.nu b/.github/workflows/release-pkg.nu index 562f42b4a..f1d56d761 100755 --- a/.github/workflows/release-pkg.nu +++ b/.github/workflows/release-pkg.nu @@ -84,6 +84,20 @@ if $os in ['macos-latest'] or $USE_UBUNTU { $env.CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER = 'arm-linux-gnueabihf-gcc' cargo-build-nu } + 'aarch64-unknown-linux-musl' => { + aria2c https://musl.cc/aarch64-linux-musl-cross.tgz + tar -xf aarch64-linux-musl-cross.tgz + $env.PATH = ($env.PATH | split row (char esep) | prepend $'($env.PWD)/aarch64-linux-musl-cross/bin') + $env.CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER = 'aarch64-linux-musl-gcc' + cargo-build-nu + } + 'armv7-unknown-linux-musleabihf' => { + aria2c https://musl.cc/armv7r-linux-musleabihf-cross.tgz + tar -xf armv7r-linux-musleabihf-cross.tgz + $env.PATH = ($env.PATH | split row (char esep) | prepend $'($env.PWD)/armv7r-linux-musleabihf-cross/bin') + $env.CARGO_TARGET_ARMV7_UNKNOWN_LINUX_MUSLEABIHF_LINKER = 'armv7r-linux-musleabihf-gcc' + cargo-build-nu + } _ => { # musl-tools to fix 'Failed to find tool. Is `musl-gcc` installed?' # Actually just for x86_64-unknown-linux-musl target