Skip to content

Commit 092260c

Browse files
committed
Test external commands with nightly GHC
It suffices to test the nightly on one platform, in the sdist test. Fixes #231
1 parent f303903 commit 092260c

1 file changed

Lines changed: 17 additions & 9 deletions

File tree

.github/workflows/debugger.yaml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,18 @@ jobs:
7070

7171
# Tests run on the distributed sdist to catch packaging issues.
7272
build-n-test-haskell-debugger:
73-
name: Build and Run Tests on Sdist
73+
name: Build and Run Tests on Sdist (GHC ${{ matrix.version }})
7474
needs: sdist-haskell-debugger
7575
runs-on: ubuntu-latest # just one is fine here, we test more machines on the checkout
7676
continue-on-error: ${{ inputs.is-release == false }}
7777
strategy:
7878
matrix:
79-
version: [9.14.1]
79+
version: [9.14.1, 9.15.20260327]
8080
include:
8181
- channel: https://raw.githubusercontent.com/haskell/ghcup-metadata/refs/heads/develop/ghcup-prereleases-0.0.9.yaml
8282
version: 9.14.1
83+
- channel: https://gitlab.haskell.org/ghc/ghcup-metadata/-/raw/updates/ghcup-nightlies-0.0.7.yaml
84+
version: 9.15.20260327
8385
steps:
8486
- uses: actions/checkout@v4
8587
with:
@@ -115,25 +117,31 @@ jobs:
115117
(cd ${{ runner.temp }}/dist && tar xzf "haskell-debugger-view-${{env.haskellDebuggerViewVersion}}.tar.gz" && mv "haskell-debugger-view-${{env.haskellDebuggerViewVersion}}" "haskell-debugger-${{env.haskellDebuggerVersion}}/haskell-debugger-view")
116118
(cd ${{ runner.temp }}/dist/haskell-debugger-${{env.haskellDebuggerVersion}} && echo 'packages: . ./haskell-debugger-view' > cabal.project)
117119
120+
- name: Configure head.hackage for nightly
121+
if: matrix.version == '9.15.20260327'
122+
working-directory: ${{ runner.temp }}/dist/haskell-debugger-${{ env.haskellDebuggerVersion }}
123+
run: |
124+
curl --proto '=https' --tlsv1.2 -fsSL https://ghc.gitlab.haskell.org/head.hackage/cabal.project >> cabal.project.local
125+
echo 'constraints: hashable == 1.4.7.0' >> cabal.project.local
126+
cabal update
127+
118128
- name: Build and Run tests
119129
run: |
120130
echo "Using haskell-debugger-view from hackage: ${{env.USE_HASKELL_DEBUGGER_VIEW_FROM_HACKAGE}}"
121131
cd ${{ runner.temp }}/dist/haskell-debugger-${{env.haskellDebuggerVersion}}
122-
cabal run haskell-debugger-test --enable-executable-dynamic --allow-newer=ghc-bignum,containers,time,ghc,base,template-haskell --ghc-options=-Werror
132+
cabal run haskell-debugger-test --enable-executable-dynamic --allow-newer=ghc-bignum,containers,time,ghc,ghci,base,ghc-internal,ghc-prim,template-haskell --ghc-options=-Werror
123133
124134
# Tests run on the git checkout
125135
build-n-more-test-haskell-debugger:
126-
name: Build and Run Tests on checkout (${{ matrix.runner }})
136+
name: Build and Run Tests on checkout (${{ matrix.runner }}, GHC ${{ matrix.version }})
127137
runs-on: ${{ matrix.runner }}
128138
# Run all jobs in the matrix to the end (IF RELEASE, STOP ON FAILURE)
129139
continue-on-error: ${{ inputs.is-release == false }}
130140
strategy:
131141
matrix:
132142
runner: [ubuntu-latest, macOS-latest] # windows-latest is broken, see #246
133-
version: [9.14.1] #, latest-nightly] disable nightly while its broken
143+
version: [9.14.1]
134144
include:
135-
# - channel: https://ghc.gitlab.haskell.org/ghcup-metadata/ghcup-nightlies-0.0.7.yaml
136-
# version: latest-nightly
137145
- channel: https://raw.githubusercontent.com/haskell/ghcup-metadata/refs/heads/develop/ghcup-prereleases-0.0.9.yaml
138146
version: 9.14.1
139147
steps:
@@ -192,7 +200,7 @@ jobs:
192200
shell: bash
193201
run: |
194202
if [ "$RUNNER_OS" == "Windows" ]; then
195-
cabal run haskell-debugger-test --allow-newer=ghc-bignum,containers,time,ghc,base,template-haskell
203+
cabal run haskell-debugger-test --allow-newer=ghc-bignum,containers,time,ghc,ghci,base,template-haskell
196204
else
197-
cabal run haskell-debugger-test --enable-executable-dynamic --allow-newer=ghc-bignum,containers,time,ghc,base,template-haskell
205+
cabal run haskell-debugger-test --enable-executable-dynamic --allow-newer=ghc-bignum,containers,time,ghc,ghci,base,template-haskell
198206
fi

0 commit comments

Comments
 (0)