Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade CI to use Crystal 0.28.0 #7705

Merged
merged 4 commits into from
Apr 24, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
CI: Setup darwin using osx github .tar.gz
  • Loading branch information
bcardiff committed Apr 18, 2019
commit 034f213d75537c8bc074cd49dd5b9cc221a8c103
12 changes: 6 additions & 6 deletions bin/ci
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ format() {
prepare_build() {
on_linux verify_linux_environment

on_osx brew install crystal
on_osx curl -L https://github.com/crystal-lang/crystal/releases/download/0.27.2/crystal-0.27.2-1-darwin-x86_64.tar.gz -o ~/crystal.tar.gz
on_osx 'pushd ~;gunzip -c ~/crystal.tar.gz | tar xopf -;mv crystal-0.27.2-1 crystal;popd'

# Make sure binaries from llvm are available in PATH
on_osx brew install jq
on_osx OSX_LLVM_PACKAGE=`brew info --json=v1 crystal | jq '.[].dependencies | .[] | select(startswith("llvm"))'`
on_osx brew link --force $OSX_LLVM_PACKAGE
on_osx brew install llvm@6 gmp libevent pcre pkg-config
on_osx brew upgrade libyaml
on_osx brew link --force llvm@6

on_tag verify_version
}
Expand Down Expand Up @@ -135,7 +135,7 @@ with_build_env() {
"$ARCH_CMD" /bin/sh -c "'$command'"

on_osx sudo systemsetup -settimezone $TZ
on_osx PATH="/usr/local/opt/llvm/bin:\$PATH" \
on_osx PATH="~/crystal/bin:\$PATH" \
CRYSTAL_CACHE_DIR="/tmp/crystal" \
/bin/sh -c "'$command'"

Expand Down