Commit d8c805b2 authored by Ben Gamari's avatar Ben Gamari 🐢

Use pre-built cabal-install binaries on armv7l and aarch64

parent 041c49d7
Pipeline #10270 canceled with stages
in 87 minutes and 7 seconds
......@@ -48,13 +48,13 @@ RUN curl http://releases.llvm.org/$LLVM_VERSION/clang+llvm-$LLVM_VERSION-aarch64
# Cabal
ENV CABAL_VERSION 3.0.0.0
RUN git clone https://github.com/haskell/Cabal
WORKDIR /Cabal
RUN git checkout cabal-install-v$CABAL_VERSION
WORKDIR /Cabal/cabal-install
RUN EXTRA_CONFIGURE_OPTS=--disable-optimization ./bootstrap.sh --global --no-doc
RUN ls /Cabal/cabal-install/dist/build
#RUN git clone https://github.com/haskell/Cabal
#WORKDIR /Cabal
#RUN git checkout cabal-install-v$CABAL_VERSION
#WORKDIR /Cabal/cabal-install
#RUN EXTRA_CONFIGURE_OPTS=--disable-optimization ./bootstrap.sh --global --no-doc
#RUN ls /Cabal/cabal-install/dist/build
RUN curl http://home.smart-cactus.org/~ben/ghc/cabal-install-3.0.0.0-aarch64-debian9-linux.tar.gz | tar -xzC /usr/local/bin
ENV PATH /home/ghc/.local/bin:/opt/ghc/$GHC_VERSION/bin:$PATH
......
......@@ -48,14 +48,14 @@ RUN curl http://releases.llvm.org/$LLVM_VERSION/clang+llvm-$LLVM_VERSION-armv7a-
llc --version
# Cabal
ENV CABAL_VERSION 3.0.0.0
RUN git clone https://github.com/haskell/Cabal
WORKDIR /Cabal
RUN git checkout cabal-install-v$CABAL_VERSION
WORKDIR /Cabal/cabal-install
RUN EXTRA_CONFIGURE_OPTS=--disable-optimization ./bootstrap.sh --global --no-doc
RUN ls /Cabal/cabal-install/dist/build
#ENV CABAL_VERSION 3.0.0.0
#RUN git clone https://github.com/haskell/Cabal
#WORKDIR /Cabal
#RUN git checkout cabal-install-v$CABAL_VERSION
#WORKDIR /Cabal/cabal-install
#RUN EXTRA_CONFIGURE_OPTS=--disable-optimization ./bootstrap.sh --global --no-doc
#RUN ls /Cabal/cabal-install/dist/build
RUN curl http://home.smart-cactus.org/~ben/ghc/cabal-install-3.0.0.0-armv7l-debian9-linux.tar.gz | tar -xzC /usr/local/bin
ENV PATH /home/ghc/.local/bin:/opt/ghc/$GHC_VERSION/bin:$PATH
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment