Some checks failed
nigig-site / Owned paths and honest test contracts (push) Has been cancelled
nigig-site / Cargo check-all-targets (push) Has been cancelled
nigig-site / Cargo clippy-site-owned (push) Has been cancelled
nigig-site / Cargo integration-non-live (push) Has been cancelled
nigig-site / Cargo media-export-baseline (push) Has been cancelled
nigig-site / Cargo storage-crypto-baseline (push) Has been cancelled
nigig-site / Cargo unit (push) Has been cancelled
nigig-site / Runtime UI (explicitly skipped until enabled) (push) Has been cancelled
nigig-site / Migration and recovery (explicitly skipped until enabled) (push) Has been cancelled
nigig-site / Media limits (explicitly skipped until enabled) (push) Has been cancelled
nigig-site / Real server interoperability (explicitly skipped until enabled) (push) Has been cancelled
nigig-site / Security and supply-chain baseline (push) Has been cancelled
nigig-site / Release capability gate (push) Has been cancelled
repo hygiene / hygiene (push) Has been cancelled
33 lines
1.1 KiB
Bash
Executable file
33 lines
1.1 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
# Reproducible Ubuntu setup for Site jobs. Rustup must already be provisioned
|
|
# on the runner; CI does not curl an unverified installer into a shell.
|
|
set -euo pipefail
|
|
|
|
[[ $(uname -s) == Linux ]] || {
|
|
echo "ci-setup-ubuntu.sh only supports Linux runners" >&2
|
|
exit 1
|
|
}
|
|
command -v rustup >/dev/null || {
|
|
echo "ERROR: runner must provide rustup; refusing unverified bootstrap" >&2
|
|
exit 1
|
|
}
|
|
|
|
sudo apt-get update -qq
|
|
sudo apt-get install -y -qq \
|
|
time pkg-config \
|
|
libwayland-dev libxcursor-dev libxrandr-dev libxi-dev libx11-dev \
|
|
libgl1-mesa-dev libasound2-dev libglib2.0-dev libssl-dev \
|
|
libsqlite3-dev libudev-dev libpulse-dev libxkbcommon-dev libdbus-1-dev
|
|
|
|
channel=$(sed -n \
|
|
's/^[[:space:]]*channel[[:space:]]*=[[:space:]]*"\([^"]*\)".*/\1/p' \
|
|
rust-toolchain.toml | head -n 1)
|
|
[[ -n $channel ]] || {
|
|
echo "ERROR: rust-toolchain.toml has no channel" >&2
|
|
exit 1
|
|
}
|
|
|
|
rustup toolchain install "$channel" --profile minimal --component rustfmt --component clippy
|
|
rustup default "$channel"
|
|
rustc --version
|
|
cargo --version
|