mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-08 07:05:03 +00:00
13 lines
363 B
Bash
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
|