roc/ci/package_release.sh
Brendan Hansknecht 4c3d542da1
Change release to not use lto
Also added another `release-with-lto` profile.
This profile is used for nightly compiler release and benchmarks.
2023-03-10 13:57:03 -08:00

23 lines
575 B
Bash
Executable File

#!/usr/bin/env bash
# https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
set -euxo pipefail
cp target/release-with-lto/roc ./roc # to be able to delete "target" later
# delete unnecessary files and folders
git clean -fdx --exclude roc
mkdir $1
mv roc LICENSE LEGAL_DETAILS $1
mkdir $1/examples
mv examples/helloWorld.roc examples/platform-switching examples/cli $1/examples
mkdir -p $1/crates/compiler/builtins/bitcode
mv crates/roc_std $1/crates
mv crates/compiler/builtins/bitcode/src $1/crates/compiler/builtins/bitcode
tar -czvf "$1.tar.gz" $1