Skip to content

Commit

Permalink
Test without push
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilKWarmdahl committed Dec 4, 2024
1 parent 23d97b9 commit 8416c61
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions scripts/ghc-alpine-build.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,8 @@
#!/bin/sh
#!/usr/bin/env bash

set -ex

. "$HOME/.ghcup/env"

cd ghc/
cabal install happy alex --install-method=copy
cp ~/.cabal/bin/* /usr/bin

# Build GHC
./boot
./configure --disable-numa
./hadrian/build -j17 --docs=none
mkdir _build/docs
./hadrian/build binary-dist --docs=none

# Copy ghc to out
ls _build
ls _build/bindist
cp _build/bindist/ghc-"$GHC_VERSION"-x86_64-unknown-linux.tar.xz /out/ghc-"$GHC_VERSION"-x86_64-unknown-linux-integer-gmp.tar.xz
docker build -t concordium/alpine-ghc -f fpic/alpine-integer-gmp-ghc.Dockerfile --build-arg BOOTSTRAP_HASKELL_GHC_VERSION="$BOOTSTRAP_HASKELL_GHC_VERSION" --build-arg GHC_VERSION="$GHC_VERSION" fpic
mkdir out
docker run --name alpine-ghc -e GHC_VERSION -v "$(pwd)"/out:/out concordium/alpine-ghc
#aws s3 cp out/ghc-"$GHC_VERSION"-x86_64-unknown-linux-integer-gmp.tar.xz s3://static-libraries.concordium.com/ --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers

0 comments on commit 8416c61

Please sign in to comment.