From 38f19350209a39c3a45b8e4eeb61df31b27b6ac4 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Sat, 25 May 2024 22:08:57 -0400 Subject: [PATCH] Ubuntu 20.04, Rust 1.72 --- .github/workflows/depends.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/depends.yml b/.github/workflows/depends.yml index 148a72832..2c1f3d6ea 100644 --- a/.github/workflows/depends.yml +++ b/.github/workflows/depends.yml @@ -22,7 +22,7 @@ env: jobs: build-cross: - runs-on: ubuntu-22.04 + runs-on: ubuntu-20.04 env: CCACHE_TEMPDIR: /tmp/.ccache-temp strategy: @@ -107,7 +107,9 @@ jobs: - name: install dependencies run: sudo apt update; sudo apt -y install build-essential libtool cmake autotools-dev automake pkg-config bsdmainutils curl git ca-certificates ccache ${{ matrix.toolchain.packages }} - name: install rust target - run: rustup update stable; rustup target add ${{ matrix.toolchain.rust_host }} + # We can't use the latest Rust due to LLVM 17 not working with old `ld`s (such as in Ubuntu 20.04) for RISC-V + # We could update ld (a pain), update Ubuntu (requires a large amount of changes), or downgrade Rust + run: rustup toolchain install 1.72; rustup default 1.72; rustup target add ${{ matrix.toolchain.rust_host }} - name: prepare w64-mingw32 if: ${{ matrix.toolchain.host == 'x86_64-w64-mingw32' || matrix.toolchain.host == 'i686-w64-mingw32' }} run: |