Skip to content

Commit 139a7dc

Browse files
committed
Be explicit about the test GHC
1 parent 42508a6 commit 139a7dc

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

.github/scripts/test.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,15 @@ esac
2121
cd ..
2222

2323
ghcup --no-verbose install ghc --set --install-targets "${GHC_TARGETS}" "${GHC_VERSION}"
24+
ghcup --no-verbose install ghc --install-targets "${GHC_TARGETS}" "${GHC_TEST_VERSION}"
2425

2526
cabal update
2627

2728
# TODO: we want to avoid building here... we should just
2829
# be using the previously built 'cabal-tests' binary
29-
cabal run ${ADD_CABAL_ARGS} cabal-testsuite:cabal-tests -- \
30+
cabal run -w "${GHC_VERSION}" ${ADD_CABAL_ARGS} cabal-testsuite:cabal-tests -- \
3031
--with-cabal "$(pwd)/out/cabal" \
32+
--with-ghc "ghc-${GHC_TEST_VERSION}" \
3133
--intree-cabal-lib "$(pwd)" \
3234
--test-tmp "$(pwd)/testdb" \
3335
--skip-setup-tests \

.github/workflows/reusable-release.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ on:
2424
env:
2525
GHC_VERSION: ${{ inputs.ghc }}
2626
GHC_TARGETS: ${{ inputs.ghc_targets }}
27+
GHC_TEST_VERSION: 9.6.7
2728
CABAL_VERSION: ${{ inputs.cabal }}
2829
BOOTSTRAP_HASKELL_NONINTERACTIVE: 1
2930
BOOTSTRAP_HASKELL_MINIMAL: 1
@@ -458,8 +459,6 @@ jobs:
458459
env:
459460
TARBALL_EXT: tar.xz
460461
ARCH: 64
461-
GHC_VERSION: 9.6.7
462-
GHC_TARGETS: "install_bin install_lib update_package_db"
463462
ADD_CABAL_ARGS: ""
464463
strategy:
465464
fail-fast: false
@@ -610,8 +609,6 @@ jobs:
610609
ADD_CABAL_ARGS: ""
611610
TARBALL_EXT: tar.xz
612611
ARCH: ARM64
613-
GHC_VERSION: 9.6.7
614-
GHC_TARGETS: "install_bin install_lib update_package_db"
615612
strategy:
616613
fail-fast: false
617614
matrix:
@@ -665,8 +662,6 @@ jobs:
665662
ARCH: 64
666663
TARBALL_EXT: tar.xz
667664
DISTRO: na
668-
GHC_VERSION: 9.6.7
669-
GHC_TARGETS: "install_bin install_lib update_package_db"
670665
strategy:
671666
fail-fast: false
672667
matrix:
@@ -704,8 +699,6 @@ jobs:
704699
DISTRO: na
705700
HOMEBREW_CHANGE_ARCH_TO_ARM: 1
706701
GHCUP_INSTALL_BASE_PREFIX: ${{ github.workspace }}
707-
GHC_VERSION: 9.6.7
708-
GHC_TARGETS: "install_bin install_lib update_package_db"
709702
strategy:
710703
fail-fast: false
711704
matrix:
@@ -742,8 +735,6 @@ jobs:
742735
DISTRO: na
743736
CABAL_DIR: "C:\\Users\\runneradmin\\AppData\\Roaming\\cabal"
744737
GHCUP_INSTALL_BASE_PREFIX: "/c"
745-
GHC_VERSION: 9.6.7
746-
GHC_TARGETS: "install_bin install_lib update_package_db"
747738
strategy:
748739
fail-fast: false
749740
matrix:
@@ -793,8 +784,6 @@ jobs:
793784
RUNNER_OS: FreeBSD
794785
CABAL_DIR: ${{ github.workspace }}/.cabal
795786
GHCUP_INSTALL_BASE_PREFIX: ${{ github.workspace }}
796-
GHC_VERSION: 9.6.7
797-
GHC_TARGETS: "install_bin install_lib update_package_db"
798787
strategy:
799788
fail-fast: false
800789
matrix:

0 commit comments

Comments
 (0)