aa
Some checks failed
Deploy control plane / Build, push, and deploy production (push) Failing after 6s
Release VPS agent / Build and publish Linux agent (push) Failing after 3m15s

This commit is contained in:
2026-09-24 23:32:59 +03:00
parent e460f0fb85
commit d912da6310
3 changed files with 18 additions and 6 deletions

View File

@@ -44,12 +44,24 @@ jobs:
shell: bash
run: |
set -Eeuo pipefail
for command_name in cargo rustup docker curl jq file sha256sum; do
for command_name in docker curl jq file sha256sum; do
command -v "$command_name" >/dev/null || {
printf 'runner prerequisite is missing: %s\n' "$command_name" >&2
exit 1
}
done
if ! command -v rustup >/dev/null || ! command -v cargo >/dev/null; then
rustup_installer="$(mktemp "${RUNNER_TEMP:-/tmp}/rustup-init.XXXXXX")"
trap 'rm -f "$rustup_installer"' EXIT
curl --proto '=https' --tlsv1.2 --fail --silent --show-error \
https://sh.rustup.rs \
--output "$rustup_installer"
sh "$rustup_installer" -y --profile minimal --default-toolchain none
export PATH="${CARGO_HOME:-$HOME/.cargo}/bin:$PATH"
printf '%s\n' "${CARGO_HOME:-$HOME/.cargo}/bin" >> "$GITHUB_PATH"
fi
command -v rustup >/dev/null || { printf 'rustup installation failed\n' >&2; exit 1; }
command -v cargo >/dev/null || { printf 'cargo installation failed\n' >&2; exit 1; }
rustup toolchain install "$RUST_TOOLCHAIN" --profile minimal --no-self-update
rustup override set "$RUST_TOOLCHAIN"
cargo install cross --version "$CROSS_VERSION" --locked