roc/www/netlify.sh
Anton-4 7819b610d9
final fix?
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-03-05 12:07:53 +01:00

13 lines
363 B
Bash

#!/usr/bin/env bash
# Runs on every Netlify build, to set up the Netlify server.
# https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
set -euxo pipefail
rustup update
# get Rust version from rust-toolchain.toml
RUST_VERSION=$(grep "^channel =" ../rust-toolchain.toml | head -1 | cut -d '"' -f 2)
rustup default "$RUST_VERSION"
bash build.sh