mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-01-11 23:08:30 +01:00
30 lines
782 B
Bash
Executable File
30 lines
782 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# This file contains setup needed for the build server to function at all.
|
|
|
|
set -exuo pipefail
|
|
|
|
mkdir -p /home/stackage
|
|
|
|
export LANG=C.UTF-8
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
apt-get update
|
|
apt-get install -y curl unzip
|
|
|
|
# Install AWS CLI
|
|
mkdir -p /tmp/awscli
|
|
(
|
|
cd /tmp/awscli
|
|
# use 2.22.35 to workaround upload errors with 2.23:
|
|
# see https://github.com/haskellfoundation/hf-infrastructure/issues/11
|
|
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.22.35.zip" -o "awscliv2.zip"
|
|
unzip -q awscliv2.zip
|
|
./aws/install --bin-dir /usr/bin
|
|
)
|
|
rm -rf /tmp/awscli
|
|
|
|
STACK_VERSION=3.7.1
|
|
curl -L https://github.com/commercialhaskell/stack/releases/download/v${STACK_VERSION}/stack-${STACK_VERSION}-linux-x86_64-bin > /usr/bin/stack
|
|
chmod +x /usr/bin/stack
|