aboutsummaryrefslogtreecommitdiff
path: root/scripts/ci/steps/20-sdist.sh
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2018-10-26 17:53:18 +0200
committerDaniel Gröber <dxld@darkboxed.org>2018-10-27 19:53:16 +0200
commit69e4efe5286e8955743c64034a2c7eb69e7e4a6a (patch)
tree1cb62a9b22c8682483fe06efadb872620c834247 /scripts/ci/steps/20-sdist.sh
parent635ffcaad47847ac5a5837ad10123c8bea7f2917 (diff)
Switch CI to v2-build
Diffstat (limited to 'scripts/ci/steps/20-sdist.sh')
-rw-r--r--scripts/ci/steps/20-sdist.sh9
1 files changed, 8 insertions, 1 deletions
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"