@@ -48,6 +48,9 @@ jobs:
4848 COVERAGE: ${{ matrix.coverage }}
4949 DOCTEST: ${{ matrix.doctest }}
5050
51+ # Subdir
52+ SUBDIR: ${{ matrix.subdir }}
53+
5154 runs-on: ${{ matrix.runner }}
5255 continue-on-error: ${{ matrix.ignore_error }}
5356 strategy:
@@ -103,6 +106,13 @@ jobs:
103106 cabal_version: 3.6.2.0
104107 cabal_project: cabal.project.streamly
105108 ignore_error: true
109+ - name: 9.0.2-streamly-core-sdist
110+ ghc_version: 9.0.2
111+ runner: ubuntu-latest
112+ build: cabal
113+ cabal_version: 3.6.2.0
114+ subdir: core
115+ ignore_error: false
106116 - name: 8.10.7-streamly-sdist-stack
107117 runner: ubuntu-latest
108118 build: stack
@@ -235,5 +245,13 @@ jobs:
235245 export TOOLS_DIR=/opt
236246 # /usr/local/opt/curl/bin for macOS
237247 export PATH=$HOME/.local/bin:$HOME/.ghcup/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/opt/curl/bin
248+ if test -n "$SUBDIR"
249+ then
250+ mv "$PACKCHECK_LOCAL_PATH" "$SUBDIR/packcheck.sh"
251+ # This is required as dist-newstyle will be created on the top level
252+ # directory as it is considered the working dir.
253+ rm cabal.project
254+ cd "$SUBDIR"
255+ fi
238256 bash -c "$PACKCHECK_LOCAL_PATH $BUILD"
239257 fi