mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-20 23:37:56 +03:00
21 lines
575 B
Bash
21 lines
575 B
Bash
#!/bin/bash
|
|
|
|
# Runs on every Netlify build, to set up the Netlify server.
|
|
|
|
set -euxo pipefail
|
|
|
|
rustup update
|
|
rustup default stable
|
|
rustup target add wasm32-unknown-unknown wasm32-wasi
|
|
|
|
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
|
|
export PATH="$(pwd)/${ZIG_DIRNAME}:${PATH}"
|
|
|
|
# Work around an issue with wasm-pack where it fails to install wasm-opt (from binaryen) on some CI systems
|
|
# https://github.com/rustwasm/wasm-pack/issues/864
|
|
apt -y install binaryen
|
|
|
|
bash build.sh
|