Enable Mac AARCH64
This commit is contained in:
parent
fedc0bbef6
commit
700e04535a
@ -271,13 +271,13 @@ test:mac:latest:
|
|||||||
CABAL_VERSION: "3.4.0.0"
|
CABAL_VERSION: "3.4.0.0"
|
||||||
needs: []
|
needs: []
|
||||||
|
|
||||||
# test:mac:recommended:aarch64:
|
test:mac:recommended:aarch64:
|
||||||
# stage: test
|
stage: test
|
||||||
# extends: .test_ghcup_version:darwin:aarch64
|
extends: .test_ghcup_version:darwin:aarch64
|
||||||
# variables:
|
variables:
|
||||||
# GHC_VERSION: "8.10.5"
|
GHC_VERSION: "8.10.5"
|
||||||
# CABAL_VERSION: "3.4.0.0"
|
CABAL_VERSION: "3.4.0.0"
|
||||||
# needs: []
|
needs: []
|
||||||
|
|
||||||
|
|
||||||
######## freebsd test ########
|
######## freebsd test ########
|
||||||
|
@ -6,12 +6,34 @@ set -eux
|
|||||||
|
|
||||||
mkdir -p "${TMPDIR}"
|
mkdir -p "${TMPDIR}"
|
||||||
|
|
||||||
curl -sSfL https://downloads.haskell.org/~ghcup/x86_64-apple-darwin-ghcup > ./ghcup-bin
|
if [ $ARCH = 'ARM64' ] ; then
|
||||||
chmod +x ghcup-bin
|
curl -O https://downloads.haskell.org/~ghc/8.10.5/ghc-8.10.5-aarch64-apple-darwin.tar.xz
|
||||||
|
tar -xf ghc-*.tar.*
|
||||||
|
cd ghc-*
|
||||||
|
./configure --prefix="${GHCUP_INSTALL_BASE_PREFIX}"/.ghcup/ghc/8.10.5
|
||||||
|
make install
|
||||||
|
for i in "${GHCUP_INSTALL_BASE_PREFIX}"/.ghcup/ghc/8.10.5/bin/*-8.10.5 ; do
|
||||||
|
ln -s "${i}" "${GHCUP_INSTALL_BASE_PREFIX}"/.ghcup/bin/${i##*/}
|
||||||
|
done
|
||||||
|
for x in "${GHCUP_INSTALL_BASE_PREFIX}"/.ghcup/bin/*-8.10.5 ; do
|
||||||
|
ln -s ${x##*/} ${x%-8.10.5}
|
||||||
|
done
|
||||||
|
unset x i
|
||||||
|
cd ..
|
||||||
|
rm -rf ghc-8.10.5 ghc-*.tar.*
|
||||||
|
|
||||||
./ghcup-bin upgrade -i -f
|
curl -O https://github.com/haskell/cabal/files/6617482/cabal-install-3.5-arm64-darwin-11.4-bootstrapped.tar.gz
|
||||||
./ghcup-bin install ${GHC_VERSION}
|
tar -xf cabal-install-*
|
||||||
./ghcup-bin set ${GHC_VERSION}
|
mv cabal "${GHCUP_INSTALL_BASE_PREFIX}"/.ghcup/bin/cabal
|
||||||
./ghcup-bin install-cabal ${CABAL_VERSION}
|
rm -rf cabal-install
|
||||||
|
else
|
||||||
|
curl -sSfL https://downloads.haskell.org/~ghcup/x86_64-apple-darwin-ghcup > ./ghcup-bin
|
||||||
|
chmod +x ghcup-bin
|
||||||
|
|
||||||
|
./ghcup-bin upgrade -i -f
|
||||||
|
./ghcup-bin install ${GHC_VERSION}
|
||||||
|
./ghcup-bin set ${GHC_VERSION}
|
||||||
|
./ghcup-bin install-cabal ${CABAL_VERSION}
|
||||||
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user