From 439fe973c4b3c9075fefc3d193ad3f10caff64ef Mon Sep 17 00:00:00 2001 From: Justin Ma Date: Mon, 12 Jun 2023 10:40:18 +0800 Subject: [PATCH] Reset .github/workflows/release-pkg.nu (#9414) # Description We don't need to modify this file to disable the building of `riscv64gc-unknown-linux-gnu` and `armv7-unknown-linux-gnueabihf` binaries, just modify the `.github/workflows/release.yml` file is enough. Reset this file to make `.github/workflows/nightly-build.yml` work less wrong --- .github/workflows/release-pkg.nu | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/release-pkg.nu b/.github/workflows/release-pkg.nu index a6cbf2eea5..2044f644a8 100755 --- a/.github/workflows/release-pkg.nu +++ b/.github/workflows/release-pkg.nu @@ -76,6 +76,16 @@ if $os in [$USE_UBUNTU, 'macos-latest'] { let-env CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER = 'aarch64-linux-gnu-gcc' cargo-build-nu $flags } + 'riscv64gc-unknown-linux-gnu' => { + sudo apt-get install gcc-riscv64-linux-gnu -y + let-env CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_LINKER = 'riscv64-linux-gnu-gcc' + cargo-build-nu $flags + } + 'armv7-unknown-linux-gnueabihf' => { + sudo apt-get install pkg-config gcc-arm-linux-gnueabihf -y + let-env CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER = 'arm-linux-gnueabihf-gcc' + cargo-build-nu $flags + } _ => { # musl-tools to fix 'Failed to find tool. Is `musl-gcc` installed?' # Actually just for x86_64-unknown-linux-musl target