mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-22 17:41:45 +00:00
use most recent link enable PR trigger use jump-start.sh typo Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> set ROC for jump-start.sh Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> env var first Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> debug Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> more debug Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> musl adjustments Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> no longer need legacy Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> musl dir fix Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> cd .. Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> roc path fix Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> another roc path fix Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> use TESTING releases Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> ls platform Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> build.roc prebuilt-platform Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> use roc alias Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> PATH instead of alias Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> cross platform sed Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> no realpath on macos Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> pwd-p Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> only sed on linux Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> .o -> .a, aarch64 musl cp jump-start Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> alter ci/all-tests before testing Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> no longer need ROC_BUILD_FLAGS Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> debug args.exp Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> typo Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> ditch sed replace basic-cli/build.roc was updated to handle this. NO_BUILD todo Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> 0.14.0 changes back to usual trigger Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> re-enable ci_manager Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
59 lines
1.3 KiB
Bash
Executable file
59 lines
1.3 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
|
|
set -euxo pipefail
|
|
|
|
git clone https://github.com/roc-lang/basic-cli.git
|
|
cd basic-cli
|
|
git checkout $RELEASE_TAG
|
|
cd ..
|
|
|
|
if [ "$(uname -s)" == "Linux" ]; then
|
|
|
|
# check if musl-tools is installed
|
|
if ! dpkg -l | grep -q musl-tools; then
|
|
# install musl-tools with timeout for sudo problems with CI
|
|
timeout 300s sudo apt-get install -y musl-tools
|
|
fi
|
|
|
|
cd basic-cli/platform # we cd to install the target for the right rust version
|
|
if [ "$(uname -m)" == "x86_64" ]; then
|
|
rustup target add x86_64-unknown-linux-musl
|
|
elif [ "$(uname -m)" == "aarch64" ]; then
|
|
rustup target add aarch64-unknown-linux-musl
|
|
fi
|
|
cd ../..
|
|
fi
|
|
|
|
mv $(ls -d artifact/* | grep "roc_nightly.*tar\.gz" | grep "$1") ./roc_nightly.tar.gz
|
|
|
|
# decompress the tar
|
|
tar -xzvf roc_nightly.tar.gz
|
|
|
|
# delete tar
|
|
rm roc_nightly.tar.gz
|
|
|
|
# simplify dir name
|
|
mv roc_nightly* roc_nightly
|
|
|
|
cd roc_nightly
|
|
export PATH="$(pwd -P):$PATH"
|
|
cd ..
|
|
|
|
# temp test
|
|
roc version
|
|
|
|
cd basic-cli
|
|
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
|
if [[ $(uname -m) == "aarch64" ]]; then
|
|
target_arch="aarch64-unknown-linux-musl"
|
|
else
|
|
target_arch="x86_64-unknown-linux-musl"
|
|
fi
|
|
fi
|
|
./jump-start.sh
|
|
|
|
# build the basic cli platform
|
|
roc build.roc --prebuilt-platform
|
|
|
|
cd ..
|