Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wip/cabal install v3.6.2.0 p2 #2

Open
wants to merge 137 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
0960c8a
Explain why --only-download checks are there
fgaz May 3, 2021
6ac2f73
Fix --download-only making install fail
fgaz May 3, 2021
7fd9b25
Clean up imports
fgaz May 3, 2021
795d57c
Merge pull request #7380 from haskell/mergify/bp/3.6/pr-7378
emilypi May 4, 2021
11915ab
Explain why an older cabal-version is used
fgaz May 31, 2021
fb835a6
Increase purview of --dry-run and --only-download flags (#7379)
aaronallen8455 May 25, 2021
35aa1fa
Fix #6835
ezyang May 31, 2021
919829b
Add tests, undo debug output
ezyang Jun 1, 2021
df28e1e
fix ghc 8.2 incompatibility
ezyang Jun 1, 2021
3f5a252
doc: Annotate package examples
toonn Dec 21, 2020
d822435
doc: Simplify executable and library example
toonn Dec 21, 2020
ea75804
Add changelog for #7413 (Fix instantiating an indefinite Backpack fro…
ezyang Jun 11, 2021
81fccc5
Commenting out extraneous version warnings
ptkato Jul 9, 2021
c5c6edf
Adjusting cabal-testsuite checks
ptkato Jul 22, 2021
6d6cffb
Merge pull request #7487 from ptkato/backport/3.6/7470
ptkato Jul 24, 2021
55e9c6d
Force cabal to use a build plan where exe:cabal-plan is enabled
fendor Jul 27, 2021
28d2d70
Merge pull request #7499 from fendor/backport/fix/cabal-plan-exe
fendor Jul 29, 2021
fd62364
set package index asserts expensive
gbaz Aug 2, 2021
9270863
Merge pull request #7509 from haskell/mergify/bp/3.6/pr-7503
fgaz Aug 5, 2021
638950c
Bump Cabal to 3.6 and regenerate CI
emilypi Aug 5, 2021
b512b34
update docker files
emilypi Aug 5, 2021
ce8e4dc
update bootstrap plans
emilypi Aug 5, 2021
e98ff53
update cabal-install-solver dep
emilypi Aug 5, 2021
3f8969c
use python3 explicitly
emilypi Aug 5, 2021
d0a3c1d
update bytestring bound in zinza
emilypi Aug 5, 2021
62f557d
remove cruft
emilypi Aug 5, 2021
ff6d146
regen validate for 8.10.4
emilypi Aug 5, 2021
26b99e3
Merge pull request #7511 from haskell/wip/bump-3.6-into-.3.6
emilypi Aug 5, 2021
09714c0
Add Cabal-3.6.0.0 changelog
emilypi Aug 5, 2021
f3f3c77
bring Cabal changelog.md up to date, add reference to new release notes
emilypi Aug 5, 2021
65d99f2
Merge pull request #7512 from haskell/changelog-3.6
emilypi Aug 6, 2021
9a0af69
Drop obsolete Backpack warning from Chapter 6. (See: #6005)
lechner Aug 6, 2021
7e07156
Merge pull request #7521 from haskell/mergify/bp/3.6/pr-7518
emilypi Aug 7, 2021
6783bdc
Rewrite 'Building the package' docs chapter to use v2- commands, not v1-
Mikolaj Aug 10, 2021
c5da1d8
Prefer canonicalized path when guessing tools from GHC path
hasufell May 12, 2021
50eccc2
Update Cabal/src/Distribution/Simple/GHC.hs
hasufell May 12, 2021
bb72f20
Add changelog entry
hasufell May 20, 2021
536f5ec
Merge pull request #7529 from haskell/mergify/bp/3.6/pr-7392
emilypi Aug 11, 2021
89d9257
lazily decode cache files for checking invalidation (backport #7516) …
mergify[bot] Aug 12, 2021
af6936e
defer build-tools-depends choices as well as setup choices (backport …
mergify[bot] Aug 13, 2021
12b412e
Wordier explanation of the active-repositories: configuration field. …
danidiaz Aug 13, 2021
8d43cae
Merge pull request #7542 from haskell/mergify/bp/3.6/pr-7453
emilypi Aug 14, 2021
c2071a5
Set -Wno-prepositive-qualified-module in Paths_*.hs
matthewbauer Apr 7, 2021
d10f9ab
fixup
matthewbauer Apr 8, 2021
188de37
Set -w in Paths_pkg module
matthewbauer Apr 13, 2021
5b1faf5
Remove unused fields
matthewbauer Apr 26, 2021
d9f18ca
Merge pull request #7561 from haskell/mergify/bp/3.6/pr-7352
emilypi Aug 20, 2021
30280c3
Set PATH_SEPARATOR=; when calling ./configure; fix #7494
Mikolaj Aug 5, 2021
f10bafd
Don't mess with PATH_SEPARATOR outside Windows
Mikolaj Aug 5, 2021
9adf647
Add a changelog entry
Mikolaj Aug 5, 2021
38c48e6
Turn on a few extra GHC warnings
Mikolaj Jul 15, 2021
9c98439
Hack around wrong .mix directories for tests #5213
Mikolaj Jul 24, 2021
c4370db
Add the cabal-gh5213 test by RyanGlScott
Mikolaj Jul 24, 2021
8320326
Add changelog
Mikolaj Jul 24, 2021
964d3c9
Extend the comment about the hack
Mikolaj Jul 26, 2021
981f498
Add a test for #5213 with coverage instead of library-coverage
Mikolaj Jul 28, 2021
0d7a27d
Extend the .mix path hack to -O0 and -O2
Mikolaj Jul 28, 2021
8b6682f
Fixup tests due to a different order of PR merging in backports
Mikolaj Aug 23, 2021
f4f4ee0
Remove a merge conflict that mergifyio backed into the codbase
Mikolaj Aug 23, 2021
33fb3db
add changelog for cabal-install-3.6.0.0
emilypi Aug 20, 2021
66eb5be
Merge pull request #7574 from haskell/mergify/bp/3.6/pr-7563
emilypi Aug 25, 2021
5b303f5
Fix #7469: broken link to "prefix independence" in docs (#7586) (#7595)
mergify[bot] Aug 30, 2021
c2bec0e
bump Cabal version and CI plans
emilypi Aug 30, 2021
e01d71f
add Cabal 3.6.1.0 entry changelog
emilypi Aug 30, 2021
867ffa2
add unlogged PR's to changelog
emilypi Aug 30, 2021
fefc807
add entry for -Wno-preopositive-qualified-module PR
emilypi Aug 31, 2021
f9965b0
rename wrong changelog name
emilypi Aug 31, 2021
ed9cdf7
Fix #7582: add Ord to the derived instances of SymbolicPath (#7585)
andreasabel Aug 30, 2021
2b12b29
Merge branch '3.6' into mergify/bp/3.6/pr-7600
emilypi Aug 31, 2021
b4b10d1
Merge branch '3.6' into release-prep-3.6.1.0
emilypi Aug 31, 2021
45071cb
Merge pull request #7605 from haskell/mergify/bp/3.6/pr-7600
emilypi Aug 31, 2021
93f8ff3
Merge branch '3.6' into release-prep-3.6.1.0
emilypi Aug 31, 2021
ef2f617
Merge pull request #7601 from haskell/release-prep-3.6.1.0
emilypi Sep 1, 2021
892e6e6
Re #7469: doc: unified references to PATH environment variable
andreasabel Aug 31, 2021
3a397d5
Re #7469: doc: typo found by deciphering sphinx warning
andreasabel Aug 31, 2021
64cd115
Re #7469: sphinx-build with flag -n (nitpick)
andreasabel Aug 30, 2021
c182c8d
Re #7469: sphinx-build with flag -W -E --keep-going
andreasabel Aug 31, 2021
fc53282
Merge pull request #7612 from haskell/mergify/bp/3.6/pr-7603
Mikolaj Sep 2, 2021
7367a84
Update installing-packages.rst
hanshoglund Jan 3, 2020
7127a06
Merge pull request #7613 from haskell/mergify/bp/3.6/pr-6474
Mikolaj Sep 2, 2021
b992ed9
add gitlab ci integration to cabal
emilypi Sep 9, 2021
984c87e
Merge pull request #7632 from haskell/mergify/bp/3.6/pr-7631
emilypi Sep 9, 2021
6ed8cb1
remove cruft from common.sh
emilypi Sep 9, 2021
899dd34
Merge pull request #7634 from haskell/mergify/bp/3.6/pr-7633
emilypi Sep 9, 2021
c3354c9
Backport #7653
Mikolaj Sep 16, 2021
6f40e5d
Switch from 8.10.4 to 8.10.7 for bootstraps in Makefile
Mikolaj Sep 17, 2021
50f6f81
Generate and regenerate bootstrap/ files
Mikolaj Sep 17, 2021
f0c5643
Get rid of 8.10.4 bootstrap/ files, no longer generated in Makefiles
Mikolaj Sep 17, 2021
aaaf6ba
Update bootstrap CI switching GHC from 8.10.4 to 8.10.7
Mikolaj Sep 17, 2021
c3df94e
Update boostrap CI to the ghcup format GHA now uses
Mikolaj Sep 17, 2021
3879409
Merge pull request #7657 from Mikolaj/3.6
Mikolaj Sep 17, 2021
a83196a
Try to fix CI/Meta checks failure
Mikolaj Sep 17, 2021
b907ae2
Relax base dep due to changed GHC on GHA
Mikolaj Sep 18, 2021
b278960
Generate Paths_ module with qualified Data.List.last import
alexbiehl Sep 14, 2021
c183ca0
Merge pull request #7662 from Mikolaj/3.6
jneira Sep 18, 2021
2f44d28
Merge pull request #7656 from haskell/mergify/bp/3.6/pr-7650
Mikolaj Sep 18, 2021
ca9dda2
Bring back cabal-install-dev call removed by backport of #7653
Mikolaj Sep 18, 2021
7b7b780
Merge pull request #7665 from Mikolaj/3.6
Mikolaj Sep 19, 2021
ebcb356
Revert "Add a changelog entry"
Mikolaj Sep 15, 2021
5ae6ca2
Revert "Don't mess with PATH_SEPARATOR outside Windows"
Mikolaj Sep 15, 2021
8fff340
Revert "Set PATH_SEPARATOR=; when calling ./configure; fix #7494"
Mikolaj Sep 15, 2021
f27710c
Merge pull request #7664 from haskell/mergify/bp/3.6/pr-7651
jneira Sep 19, 2021
95a92a5
rewrite paths to configure
Mistuke Sep 15, 2021
a4e5da5
Merge pull request #7668 from Mikolaj/3.6
Mikolaj Sep 20, 2021
a637ca2
Add i386 build (#7700)
hasufell Oct 4, 2021
cee5824
Merge pull request #7701 from haskell/mergify/bp/3.6/pr-7700
mergify[bot] Oct 5, 2021
f2e0f2a
Remove debug info from end of error message (#7248)
ivanperez-keera Sep 14, 2021
c0ea02b
Merge pull request #7703 from haskell/mergify/bp/3.6/pr-7670
mergify[bot] Oct 7, 2021
32128dd
Fix #7698: cabal sdist works when extra-packages are present
phadej Oct 4, 2021
68a8907
Merge pull request #7706 from haskell/mergify/bp/3.6/pr-7699
Mikolaj Oct 7, 2021
34c0a9f
Bump CI and cabal versions + version output
emilypi Oct 7, 2021
8bb97c8
Revert "Bump CI and cabal versions + version output"
emilypi Oct 7, 2021
e92f6d6
Bump cabal 3.6.2.0 (#7713)
emilypi Oct 7, 2021
7841ec6
Add darwin aarch64 support to CI (#7636) (#7716)
hasufell Oct 7, 2021
2147021
Use cabal.project.release in gitlab CI
hasufell Oct 7, 2021
2d204f4
Merge pull request #7717 from hasufell/3.6
gbaz Oct 7, 2021
dcdc0c7
mask network >= 3.1.2.3 in release project file (#7719)
mergify[bot] Oct 7, 2021
0bff53d
Add changelogs for the three non-internal changes in cabal 3.6.2
Mikolaj Sep 27, 2021
585b482
Merge pull request #7720 from haskell/mergify/bp/3.6/pr-7687
gbaz Oct 7, 2021
d9c8473
add changelogs for Cabal-3.6.2.0 and cabal-install-3.6.2.0 (#7721) (#…
mergify[bot] Oct 7, 2021
380ba73
Fix CI on M1
hasufell Oct 8, 2021
49f86a2
Fix linux build
hasufell Oct 8, 2021
6f38a36
Merge pull request #7723 from hasufell/3.6
Mikolaj Oct 8, 2021
f34e2fe
Backport fix for darwin M1 to cabal.project.release (#7725)
hasufell Oct 8, 2021
4bd4ea4
remove unnecessary flags from release project file (#7729) (#7730)
mergify[bot] Oct 8, 2021
f52011a
fixup release file
emilypi Oct 8, 2021
a82693a
Add FreeBSD12 release builds (#7732)
hasufell Oct 8, 2021
2eeabab
Backport CI fixes (#7737)
hasufell Oct 9, 2021
803e6ae
cleanup and document a global repo flag
gbaz Jun 28, 2023
9a04c42
Fix build with newer GHC
hasufell Nov 16, 2023
e2f99b2
Migrate release CI back to github
hasufell Nov 13, 2023
00b4ccb
Fix name shadowing
hasufell Nov 16, 2023
c6be985
Bump to 3.6.2.1
hasufell Nov 17, 2023
245edc5
Disable GHCi libraries by default on Windows
bgamari Apr 6, 2022
4170a2a
Add changelog entry for GHC 9.4 Windows changes
bgamari Mar 28, 2022
7c00a27
Use ar -L when available
bgamari Mar 25, 2022
a20f563
Cabal: Disable GHCi libraries on Windows with GHC >=9.4
bgamari Mar 23, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# release CI for FreeBSD
compute_engine_instance:
image_project: freebsd-org-cloud-dev
image: family/freebsd-13-2
platform: freebsd
disk: 100 # Gb

build_task:
timeout_in: 120m
only_if: $CIRRUS_TAG != ''
env:
ADD_CABAL_ARGS: "--enable-split-sections"
ARCH: 64
ARTIFACT: "x86_64-portbld-freebsd"
CIRRUS_CLONE_SUBMODULES: true
DISTRO: na
GHC_VERSION: 9.2.4
GITHUB_WORKSPACE: ${CIRRUS_WORKING_DIR}
RUNNER_OS: FreeBSD
TARBALL_EXT: tar.xz
TZ: Asia/Singapore
install_script:
- sed -i.bak -e 's/quarterly/latest/' /etc/pkg/FreeBSD.conf
- pkg install -y ghc hs-cabal-install git bash misc/compat10x misc/compat11x misc/compat12x gmake llvm14 patchelf tree gmp libiconv
script:
- tzsetup Etc/GMT
- adjkerntz -a
- bash .github/scripts/build.sh
binaries_artifacts:
path: "out/*"

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM phadej/ghc:8.10.1-bionic
FROM phadej/ghc:8.10.4-bionic

# Install cabal-plan
RUN mkdir -p /root/.cabal/bin && \
Expand All @@ -24,7 +24,7 @@ RUN cabal v2-install happy --constraint 'happy ^>=1.19.12'

# Install some other dependencies
# Remove $HOME/.ghc so there aren't any environments
RUN cabal v2-install -w ghc-8.10.1 --lib \
RUN cabal v2-install -w ghc-8.10.4 --lib \
Cabal \
aeson \
async \
Expand Down Expand Up @@ -73,4 +73,4 @@ RUN cabal v2-install -w ghc-8.10.1 --lib \
# Validate
WORKDIR /build
COPY . /build
RUN sh ./validate.sh -w ghc-8.10.1 -v
RUN sh ./validate.sh -w ghc-8.10.4 -v
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM phadej/ghc:8.8.3-bionic
FROM phadej/ghc:8.8.4-bionic

# Install cabal-plan
RUN mkdir -p /root/.cabal/bin && \
Expand All @@ -24,7 +24,7 @@ RUN cabal v2-install happy --constraint 'happy ^>=1.19.12'

# Install some other dependencies
# Remove $HOME/.ghc so there aren't any environments
RUN cabal v2-install -w ghc-8.8.3 --lib \
RUN cabal v2-install -w ghc-8.8.4 --lib \
Cabal \
aeson \
async \
Expand Down Expand Up @@ -73,4 +73,4 @@ RUN cabal v2-install -w ghc-8.8.3 --lib \
# Validate
WORKDIR /build
COPY . /build
RUN sh ./validate.sh --doctest --solver-benchmarks --complete-hackage -w ghc-8.8.3 -v
RUN sh ./validate.sh --doctest --solver-benchmarks --complete-hackage -w ghc-8.8.4 -v
28 changes: 28 additions & 0 deletions .github/scripts/brew.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/sh

set -eux

# shellcheck disable=SC1091
. .github/scripts/env.sh

if [ -e "$HOME/.brew" ] ; then
(
cd "$HOME/.brew"
git fetch --depth 1
git reset --hard origin/master
)
else
git clone --depth=1 https://github.com/Homebrew/brew "$HOME/.brew"
fi
export PATH="$HOME/.brew/bin:$HOME/.brew/sbin:$PATH"

mkdir -p "$CI_PROJECT_DIR/.brew_cache"
export HOMEBREW_CACHE="$CI_PROJECT_DIR/.brew_cache"
mkdir -p "$CI_PROJECT_DIR/.brew_logs"
export HOMEBREW_LOGS="$CI_PROJECT_DIR/.brew_logs"
mkdir -p /private/tmp/.brew_tmp
export HOMEBREW_TEMP=/private/tmp/.brew_tmp

#brew update
brew install ${1+"$@"}

66 changes: 66 additions & 0 deletions .github/scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
#!/bin/bash

set -eux

# shellcheck disable=SC1091
. .github/scripts/env.sh
# shellcheck disable=SC1091
. .github/scripts/common.sh

uname -a
uname -p
uname
pwd
env

# ensure ghcup
install_ghcup

# build
ghcup install ghc "${GHC_VERSION}"
ghcup set ghc "${GHC_VERSION}"
sed -i.bak -e '/DELETE MARKER FOR CI/,/END DELETE/d' cabal.project # see comment in cabal.project
ecabal update
ecabal user-config diff
ecabal user-config init -f
"ghc-${GHC_VERSION}" --info
"ghc" --info

# https://github.com/haskell/cabal/issues/7313#issuecomment-811851884
if [ "$(getconf LONG_BIT)" == "32" ] || [ "${DISTRO}" == "CentOS" ] ; then
echo 'constraints: lukko -ofd-locking' >> cabal.project.release.local
fi

# shellcheck disable=SC2206
args=(
-w "ghc-$GHC_VERSION"
--disable-profiling
--enable-executable-stripping
--project-file=cabal.project.release
${ADD_CABAL_ARGS}
)

run cabal v2-build "${args[@]}" cabal-install

mkdir -p "$CI_PROJECT_DIR/out"
# shellcheck disable=SC2154
cp "$(cabal list-bin "${args[@]}" cabal-install:exe:cabal)" "$CI_PROJECT_DIR/out/cabal$ext"
cp dist-newstyle/cache/plan.json "$CI_PROJECT_DIR/out/plan.json"
cd "$CI_PROJECT_DIR/out/"

# create tarball/zip
TARBALL_PREFIX="cabal-install-$("$CI_PROJECT_DIR/out/cabal" --numeric-version)"
case "${TARBALL_EXT}" in
zip)
zip "${TARBALL_PREFIX}-${ARTIFACT}.${TARBALL_EXT}" "cabal${ext}" plan.json
;;
tar.xz)
tar caf "${TARBALL_PREFIX}-${ARTIFACT}.${TARBALL_EXT}" "cabal${ext}" plan.json
;;
*)
fail "Unknown TARBALL_EXT: ${TARBALL_EXT}"
;;
esac

rm cabal plan.json

110 changes: 110 additions & 0 deletions .github/scripts/common.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
#!/bin/bash

# shellcheck disable=SC1091
. .github/scripts/env.sh

# Colors
RED="0;31"
LT_BROWN="1;33"
LT_BLUE="1;34"

ecabal() {
cabal "$@"
}

nonfatal() {
"$@" || "$* failed"
}

sha_sum() {
if [ "${RUNNER_OS}" = "FreeBSD" ] ; then
sha256 "$@"
else
sha256sum "$@"
fi
}

git_describe() {
git config --global --get-all safe.directory | grep '^\*$' || git config --global --add safe.directory "*"
git describe --always
}

install_ghcup() {
# find "$GHCUP_INSTALL_BASE_PREFIX"
mkdir -p "$GHCUP_BIN"
mkdir -p "$GHCUP_BIN"/../cache

if [ "${RUNNER_OS}" = "FreeBSD" ] ; then
curl -o ghcup https://downloads.haskell.org/ghcup/tmp/x86_64-portbld-freebsd-ghcup-0.1.18.1
chmod +x ghcup
mv ghcup "$HOME/.local/bin/ghcup"
else
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_MINIMAL=1 sh
source "$(dirname "${GHCUP_BIN}")/env"
ghcup install cabal --set "${BOOTSTRAP_HASKELL_CABAL_VERSION}"
fi
}

strip_binary() {
(
set -e
local binary=$1
case "$(uname -s)" in
"Darwin"|"darwin")
;;
MSYS_*|MINGW*)
;;
*)
strip -s "${binary}"
;;
esac
)
}

# GitLab Pipelines log section delimiters
# https://gitlab.com/gitlab-org/gitlab-foss/issues/14664
start_section() {
name="$1"
echo -e "section_start:$(date +%s):$name\015\033[0K"
}

end_section() {
name="$1"
echo -e "section_end:$(date +%s):$name\015\033[0K"
}

echo_color() {
local color="$1"
local msg="$2"
echo -e "\033[${color}m${msg}\033[0m"
}

error() { echo_color "${RED}" "$1"; }
warn() { echo_color "${LT_BROWN}" "$1"; }
info() { echo_color "${LT_BLUE}" "$1"; }

fail() { error "error: $1"; exit 1; }

run() {
info "Running $*..."
"$@" || ( error "$* failed"; return 1; )
}

emake() {
if command -v gmake >/dev/null 2>&1 ; then
gmake "$@"
else
make "$@"
fi
}

mktempdir() {
case "$(uname -s)" in
"Darwin"|"darwin")
mktemp -d -t cabal_ci.XXXXXXX
;;
*)
mktemp -d
;;
esac
}
38 changes: 38 additions & 0 deletions .github/scripts/env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/bash

mkdir -p "$HOME"/.local/bin

if [ "${RUNNER_OS}" = "Windows" ] ; then
ext=".exe"
else
# shellcheck disable=SC2034
ext=''
fi

export PATH="$HOME/.local/bin:$PATH"

export BOOTSTRAP_HASKELL_NONINTERACTIVE=1
export BOOTSTRAP_HASKELL_CABAL_VERSION="${CABAL_VER:-3.8.1.0}"
export BOOTSTRAP_HASKELL_ADJUST_CABAL_CONFIG=no
export BOOTSTRAP_HASKELL_INSTALL_NO_STACK=yes
export BOOTSTRAP_HASKELL_ADJUST_BASHRC=1

if [ "${RUNNER_OS}" = "Windows" ] ; then
# on windows use pwd to get unix style path
CI_PROJECT_DIR="$(pwd)"
export CI_PROJECT_DIR
export GHCUP_INSTALL_BASE_PREFIX="/c"
export GHCUP_BIN="$GHCUP_INSTALL_BASE_PREFIX/ghcup/bin"
export PATH="$GHCUP_BIN:$PATH"
export CABAL_DIR="C:\\Users\\runneradmin\\AppData\\Roaming\\cabal"
else
export CI_PROJECT_DIR="${GITHUB_WORKSPACE}"
export GHCUP_INSTALL_BASE_PREFIX="$CI_PROJECT_DIR"
export GHCUP_BIN="$GHCUP_INSTALL_BASE_PREFIX/.ghcup/bin"
export PATH="$GHCUP_BIN:$PATH"
export CABAL_DIR="$CI_PROJECT_DIR/cabal"
export CABAL_CACHE="$CI_PROJECT_DIR/cabal-cache"
fi

export DEBIAN_FRONTEND=noninteractive
export TZ=Asia/Singapore
8 changes: 4 additions & 4 deletions .github/workflows/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: actions/checkout@v2
- name: bootstrap.py
run: |
python3 bootstrap/bootstrap.py -w /opt/ghc/8.10.4/bin/ghc -d bootstrap/linux-8.10.4.json
python3 bootstrap/bootstrap.py -w $(ghcup whereis ghc 8.10.7) -d bootstrap/linux-8.10.7.json

- name: Smoke test
run: |
Expand All @@ -40,17 +40,17 @@ jobs:
- name: Install GHC
run: |
cd $(mktemp -d)
curl -sLO "https://downloads.haskell.org/~ghc/8.10.4/ghc-8.10.4-x86_64-apple-darwin.tar.xz"
curl -sLO "https://downloads.haskell.org/~ghc/8.10.7/ghc-8.10.7-x86_64-apple-darwin.tar.xz"
tar -xJf ghc-*.tar.xz
cd ghc-*
./configure --prefix=/opt/ghc/8.10.4
./configure --prefix=/opt/ghc/8.10.7
sudo make install
- uses: actions/checkout@v2

# We use linux dependencies
- name: bootstrap.py
run: |
python3 bootstrap/bootstrap.py -w /opt/ghc/8.10.4/bin/ghc -d bootstrap/linux-8.10.4.json
python3 bootstrap/bootstrap.py -w /opt/ghc/8.10.7/bin/ghc -d bootstrap/linux-8.10.7.json

- name: Smoke test
run: |
Expand Down
Loading
Loading