Further CI fixes
This commit is contained in:
parent
16d4a28454
commit
4febf7f18d
@ -18,8 +18,10 @@ apk add --no-cache \
|
|||||||
tar \
|
tar \
|
||||||
perl
|
perl
|
||||||
|
|
||||||
ln -s libncurses.so /usr/lib/libtinfo.so
|
ln -sf libncurses.so /usr/lib/libtinfo.so
|
||||||
ln -s libncursesw.so.6 /usr/lib/libtinfow.so.6
|
ln -sf libncursesw.so.6 /usr/lib/libtinfow.so.6
|
||||||
|
ln -sf libtinfow.so.6 /usr/lib/libtinfow.so
|
||||||
|
|
||||||
if [ "${BIT}" = "32" ] ; then
|
if [ "${BIT}" = "32" ] ; then
|
||||||
curl -sSfL https://downloads.haskell.org/~ghcup/0.1.5/i386-linux-ghcup-0.1.5 > ./ghcup-bin
|
curl -sSfL https://downloads.haskell.org/~ghcup/0.1.5/i386-linux-ghcup-0.1.5 > ./ghcup-bin
|
||||||
else
|
else
|
||||||
@ -60,5 +62,5 @@ apk add --no-cache \
|
|||||||
xz-dev \
|
xz-dev \
|
||||||
ncurses-static
|
ncurses-static
|
||||||
|
|
||||||
ln -s libncursesw.a /usr/lib/libtinfow.a
|
ln -sf libncursesw.a /usr/lib/libtinfow.a
|
||||||
|
|
||||||
|
@ -16,7 +16,11 @@ git describe
|
|||||||
ecabal update
|
ecabal update
|
||||||
|
|
||||||
if [ "${OS}" = "LINUX" ] ; then
|
if [ "${OS}" = "LINUX" ] ; then
|
||||||
|
if [ "${BIT}" = "32" ] ; then
|
||||||
|
ecabal build -w ghc-${GHC_VERSION} --ghc-options='-split-sections -optl-static'
|
||||||
|
else
|
||||||
ecabal build -w ghc-${GHC_VERSION} --ghc-options='-split-sections -optl-static' -ftui
|
ecabal build -w ghc-${GHC_VERSION} --ghc-options='-split-sections -optl-static' -ftui
|
||||||
|
fi
|
||||||
elif [ "${OS}" = "FREEBSD" ] ; then
|
elif [ "${OS}" = "FREEBSD" ] ; then
|
||||||
ecabal build -w ghc-${GHC_VERSION} --ghc-options='-split-sections' --constraint="zlib static"
|
ecabal build -w ghc-${GHC_VERSION} --ghc-options='-split-sections' --constraint="zlib static"
|
||||||
else
|
else
|
||||||
@ -26,6 +30,10 @@ fi
|
|||||||
mkdir out
|
mkdir out
|
||||||
cp "$(ecabal new-exec -w ghc-${GHC_VERSION} --verbose=0 --offline sh -- -c 'command -v ghcup')" .
|
cp "$(ecabal new-exec -w ghc-${GHC_VERSION} --verbose=0 --offline sh -- -c 'command -v ghcup')" .
|
||||||
ver=$(./ghcup --numeric-version)
|
ver=$(./ghcup --numeric-version)
|
||||||
|
if [ "${OS}" = "DARWIN" ] ; then
|
||||||
|
strip ./ghcup
|
||||||
|
else
|
||||||
strip -s ./ghcup
|
strip -s ./ghcup
|
||||||
|
fi
|
||||||
cp ghcup out/${ARTIFACT}-${ver}
|
cp ghcup out/${ARTIFACT}-${ver}
|
||||||
|
|
||||||
|
@ -21,9 +21,9 @@ git describe --always
|
|||||||
ecabal update
|
ecabal update
|
||||||
|
|
||||||
if [ "${OS}" = "DARWIN" ] ; then
|
if [ "${OS}" = "DARWIN" ] ; then
|
||||||
ecabal build -w ghc-${GHC_VERSION}
|
ecabal build -w ghc-${GHC_VERSION} -ftui
|
||||||
else
|
else
|
||||||
ecabal build -w ghc-${GHC_VERSION} -finternal-downloader
|
ecabal build -w ghc-${GHC_VERSION} -finternal-downloader -ftui
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cp "$(ecabal new-exec --enable-tests --verbose=0 --offline sh -- -c 'command -v ghcup')" .
|
cp "$(ecabal new-exec --enable-tests --verbose=0 --offline sh -- -c 'command -v ghcup')" .
|
||||||
|
Loading…
Reference in New Issue
Block a user