Skip to content

Commit

Permalink
Use the same llvm's version as crystal-lang package for CI's darwin b…
Browse files Browse the repository at this point in the history
…uild (#5804)

* Use llvm5 for darwin build in CI

* Force binaries of llvm in PATH

* DRY for the llvm's version crystal-lang's depends on

* Install jq
  • Loading branch information
bew authored and RX14 committed Mar 11, 2018
1 parent e8916bc commit 10fb1ff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/ci
Expand Up @@ -84,7 +84,12 @@ prepare_build() {

on_linux docker pull "jhass/crystal-build-$ARCH"

on_osx brew install llvm crystal-lang
on_osx brew install crystal-lang

# Make sure binaries from llvm are available in PATH
on_osx brew install jq
on_osx OSX_LLVM_PACKAGE=`brew info --json=v1 crystal-lang | jq '.[].dependencies | .[] | select(startswith("llvm"))'`
on_osx brew link --force $OSX_LLVM_PACKAGE
}

with_build_env() {
Expand Down

0 comments on commit 10fb1ff

Please sign in to comment.