From 616a059d6cfd54335cc28093b9c99d45b22a4aac Mon Sep 17 00:00:00 2001 From: Josh Simmons Date: Sun, 6 Nov 2022 11:45:09 +0100 Subject: [PATCH] [meta] Update rust in github actions --- .github/workflows/rust.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b6d4ca4..86ac610 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -19,6 +19,28 @@ jobs: run: | sudo apt-get update sudo apt-get install libsdl2-dev clang llvm + - name: install_rustup + run: | + : install rustup if needed + if ! command -v rustup &> /dev/null ; then + curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y + echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_PATH + fi + shell: bash + if: runner.os != 'Windows' + + - name: update_rust + run: | + rustup update + + - name: setup_rust + run: | + : disable incremental compilation + echo CARGO_INCREMENTAL=0 >> $GITHUB_ENV + : enable colors in Cargo output + echo CARGO_TERM_COLOR=always >> $GITHUB_ENV + shell: bash + - name: install_mold run: | version=$(wget -q -O- https://api.github.com/repos/rui314/mold/releases/latest | jq -r .tag_name | sed 's/^v//'); true -- 2.49.0