Skip to content

Commit 10fb1ff

Browse files
bewRX14
authored andcommittedMar 11, 2018
Use the same llvm's version as crystal-lang package for CI's darwin build (#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
1 parent e8916bc commit 10fb1ff

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

Diff for: ‎bin/ci

+6-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,12 @@ prepare_build() {
8484

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

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

9095
with_build_env() {

0 commit comments

Comments
 (0)
Please sign in to comment.