2022-08-12 12:45:02 +03:00
|
|
|
#!/usr/bin/env bash
|
2022-03-01 03:39:06 +03:00
|
|
|
|
|
|
|
# Runs on every Netlify build, to set up the Netlify server.
|
|
|
|
|
2022-10-17 18:40:35 +03:00
|
|
|
# https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
|
2022-03-01 03:39:06 +03:00
|
|
|
set -euxo pipefail
|
|
|
|
|
|
|
|
rustup update
|
|
|
|
rustup default stable
|
|
|
|
|
2022-05-14 12:09:50 +03:00
|
|
|
ZIG_DIRNAME="zig-linux-x86_64-0.9.1"
|
|
|
|
wget https://ziglang.org/download/0.9.1/${ZIG_DIRNAME}.tar.xz
|
|
|
|
tar --extract --xz --file=${ZIG_DIRNAME}.tar.xz
|
2022-05-16 11:02:43 +03:00
|
|
|
PATH="$(pwd)/${ZIG_DIRNAME}:${PATH}"
|
2022-03-01 05:09:32 +03:00
|
|
|
|
2022-05-16 11:02:43 +03:00
|
|
|
export PATH
|
2022-03-01 03:39:06 +03:00
|
|
|
bash build.sh
|