diff --git a/.github/workflows/release-pkg.nu b/.github/workflows/release-pkg.nu index 754ff7b535..82a569997a 100755 --- a/.github/workflows/release-pkg.nu +++ b/.github/workflows/release-pkg.nu @@ -48,6 +48,7 @@ $'Start building ($bin)...'; hr-line # ---------------------------------------------------------------------------- if $os in [$USE_UBUNTU, 'macos-latest'] { if $os == $USE_UBUNTU { + sudo apt update sudo apt-get install libxcb-composite0-dev -y } if $target == 'aarch64-unknown-linux-gnu' { @@ -58,6 +59,10 @@ if $os in [$USE_UBUNTU, 'macos-latest'] { 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 + } else if $target == '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 } else { # musl-tools to fix 'Failed to find tool. Is `musl-gcc` installed?' # Actually just for x86_64-unknown-linux-musl target diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 53d4775027..2942ff2c3d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,6 +27,7 @@ jobs: - x86_64-unknown-linux-musl - aarch64-unknown-linux-gnu - armv7-unknown-linux-gnueabihf + - riscv64gc-unknown-linux-gnu extra: ['bin'] include: - target: aarch64-apple-darwin @@ -55,6 +56,9 @@ jobs: - target: armv7-unknown-linux-gnueabihf os: ubuntu-20.04 target_rustflags: '' + - target: riscv64gc-unknown-linux-gnu + os: ubuntu-20.04 + target_rustflags: '' runs-on: ${{matrix.os}} @@ -71,7 +75,7 @@ jobs: - name: Setup Nushell uses: hustcer/setup-nu@v3 with: - version: 0.71.0 + version: 0.72.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}