From 69e4efe5286e8955743c64034a2c7eb69e7e4a6a Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Fri, 26 Oct 2018 17:53:18 +0200 Subject: Switch CI to v2-build --- scripts/ci/steps/20-sdist.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'scripts/ci/steps/20-sdist.sh') diff --git a/scripts/ci/steps/20-sdist.sh b/scripts/ci/steps/20-sdist.sh index bd8fbe1..ab98061 100644 --- a/scripts/ci/steps/20-sdist.sh +++ b/scripts/ci/steps/20-sdist.sh @@ -1,6 +1,13 @@ mkdir -p "$source_dir" mkdir -p "$build_dir" -cabal --sandbox-config="$sandbox_config" sdist --builddir="$build_dir" --output-directory="$source_dir" +cabal act-as-setup -- sdist --output-directory="$source_dir" + +if [ -d cabal-plan/ ]; then + ( + cd cabal-plan/ + cabal act-as-setup -- sdist --output-directory="$source_dir/cabal-plan" + ) +fi cd "$source_dir" -- cgit v1.2.3