Skip to content

Commit 61d6947

Browse files
authored
Merge pull request #10477 from haskell/mergify/bp/3.12/pr-10448
Backport #10448: try to run check-sdist on the right ghcs
2 parents 39b1d2c + 63735bc commit 61d6947

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

.github/workflows/check-sdist.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,17 @@ jobs:
3737
# No caching, since the point is to verify they can be installed "from scratch"
3838
# Don't run on master or a PR targeting master, because there's never an installable Cabal
3939
dogfood-sdists:
40-
name: Dogfood sdist on ${{ matrix.os }} ghc-${{ matrix.ghc }}
40+
name: Dogfood sdist on ghc-${{ matrix.ghc }}
4141
if: github.ref != 'refs/heads/master' && github.base_ref != 'master'
42-
runs-on: ${{ matrix.os }}
42+
runs-on: ubuntu-latest
4343
strategy:
4444
matrix:
45-
os: [ubuntu-latest]
4645
# this should be kept up to date with the list in validate.yml, but should be the
4746
# *first* compiler release so we validate against what is hopefully the first
4847
# release of a corresponding Cabal and friends. it can also be short since it's
4948
# highly unlikely that we are releasing really old branches.
5049
ghc:
51-
[
52-
"9.10.1",
53-
"9.8.1",
54-
"9.6.1",
55-
"9.4.1",
56-
]
50+
["9.10.1", "9.8.1", "9.6.1"]
5751

5852
steps:
5953

@@ -77,9 +71,9 @@ jobs:
7771
# (don't look at this too closely)
7872
sdist="$(ls dist-newstyle/sdist/cabal-install-*.tar.gz | sed -n '\,^dist-newstyle/sdist/cabal-install-[0-9.]*\.tar\.gz$,{;p;q;}')"
7973
# extract the cabal-install major version
80-
ver="$(echo "$sdist" | sed -n 's,^dist-newstyle/sdist/cabal-install-\([0-9][0-9]*\.[0-9][0-9]*\)\.[0-9.]*$,\1,p')"
74+
ver="$(echo "$sdist" | sed -n 's,^dist-newstyle/sdist/cabal-install-\([0-9][0-9]*\.[0-9][0-9]*\)\.[0-9.]*\.tar\.gz$,\1,p')"
8175
# dunno if this will ever be extended to freebsd, but grep -q is a gnu-ism
82-
if ghc-pkg --global --simple-output list Cabal | grep "^Cabal-$cbl\\." >/dev/null; then
76+
if ghc-pkg --global --simple-output list Cabal | grep "^Cabal-$ver\\." >/dev/null; then
8377
# sigh, someone broke installing from tarballs
8478
rm -rf cabal*.project Cabal Cabal-syntax cabal-install-solver cabal-install
8579
tar xfz "$sdist"

0 commit comments

Comments
 (0)