Skip to content

Commit 701b6bb

Browse files
committed
Wobble
1 parent 2a6d1a3 commit 701b6bb

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

.github/scripts/build.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,23 @@ args=(
3838
)
3939

4040
cabal --store-dir=store update
41-
cabal --store-dir=store v2-build "${args[@]}" cabal-install
41+
cabal --store-dir=store v2-build "${args[@]}" cabal-install:exe:cabal cabal-testsuite:cabal-tests
4242

4343
mkdir -p "out"
4444
# shellcheck disable=SC2154
4545
cp "$(cabal --store-dir=store list-bin "${args[@]}" cabal-install:exe:cabal)" "out/cabal$ext"
46+
cp "$(cabal --store-dir=store list-bin "${args[@]}" cabal-testsuite:cabal-tests)" "out/cabal-tests$ext"
4647
cp dist-newstyle/cache/plan.json "out/plan.json"
4748
cd "out/"
4849

4950
# create tarball/zip
5051
TARBALL_PREFIX="cabal-install-$("./cabal" --numeric-version)"
5152
case "${TARBALL_EXT}" in
5253
zip)
53-
zip "${TARBALL_PREFIX}-${ARTIFACT}.${TARBALL_EXT}" "cabal${ext}" plan.json
54+
zip "${TARBALL_PREFIX}-${ARTIFACT}.${TARBALL_EXT}" "cabal${ext}" "cabal-tests${ext}" plan.json
5455
;;
5556
tar.xz)
56-
tar caf "${TARBALL_PREFIX}-${ARTIFACT}.${TARBALL_EXT}" "cabal${ext}" plan.json
57+
tar caf "${TARBALL_PREFIX}-${ARTIFACT}.${TARBALL_EXT}" "cabal${ext}" "cabal-tests${ext}" plan.json
5758
;;
5859
*)
5960
fail "Unknown TARBALL_EXT: ${TARBALL_EXT}"

.github/scripts/test.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,7 @@ cabal --store-dir=store update
2626

2727
# TODO: we want to avoid building here... we should just
2828
# be using the previously built 'cabal-tests' binary
29-
cabal --store-dir=store run \
30-
--disable-profiling \
31-
--enable-executable-stripping \
32-
--project-file=cabal.release.project \
33-
${ADD_CABAL_ARGS} \
34-
cabal-testsuite:cabal-tests -- \
29+
"$(pwd)/out/cabal-tests" \
3530
--with-cabal "$(pwd)/out/cabal" \
3631
--intree-cabal-lib "$(pwd)" \
3732
--test-tmp "$(pwd)/testdb" \

0 commit comments

Comments
 (0)