Skip to content

Commit 5d1056d

Browse files
committed
Only install llvm on aarch64-darwin for 8.10.7
1 parent 6a90406 commit 5d1056d

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/release.yaml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -273,13 +273,18 @@ jobs:
273273

274274
- name: Run build
275275
run: |
276-
bash .github/scripts/brew.sh git coreutils llvm@11 autoconf automake tree
277-
export PATH="$HOME/.brew/bin:$HOME/.brew/sbin:$HOME/.brew/opt/llvm@11/bin:$PATH"
278-
export CC="$HOME/.brew/opt/llvm@11/bin/clang"
279-
export CXX="$HOME/.brew/opt/llvm@11/bin/clang++"
276+
if test "${GHC_VERSION}" = "8.10.7"; then
277+
bash .github/scripts/brew.sh git coreutils llvm@11 autoconf automake tree
278+
export PATH="$HOME/.brew/bin:$HOME/.brew/sbin:$HOME/.brew/opt/llvm@11/bin:$PATH"
279+
export CC="$HOME/.brew/opt/llvm@11/bin/clang"
280+
export CXX="$HOME/.brew/opt/llvm@11/bin/clang++"
281+
export AR="$HOME/.brew/opt/llvm@11/bin/llvm-ar"
282+
export RANLIB="$HOME/.brew/opt/llvm@11/bin/llvm-ranlib"
283+
else
284+
bash .github/scripts/brew.sh git coreutils autoconf automake tree
285+
export PATH="$HOME/.brew/bin:$HOME/.brew/sbin:$PATH"
286+
fi
280287
export LD=ld
281-
export AR="$HOME/.brew/opt/llvm@11/bin/llvm-ar"
282-
export RANLIB="$HOME/.brew/opt/llvm@11/bin/llvm-ranlib"
283288
bash .github/scripts/build.sh
284289
tar cf out-${ARTIFACT}-${GHC_VERSION}.tar out/ store/
285290
env:

0 commit comments

Comments
 (0)