-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
Support GHC 9.8.2
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
name: Tests Pipeline | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: ['main'] | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ on: | |
- "v*" | ||
|
||
jobs: | ||
|
||
generate-matrix: | ||
name: 'Generate matrix from cabal' | ||
outputs: | ||
|
@@ -21,6 +22,20 @@ jobs: | |
ubuntu-version: 'latest' | ||
macos-version: 'latest' | ||
version: 0.1.7.1 | ||
|
||
generate-alpine-matrix: | ||
name: 'Generate Alpine matrix from cabal' | ||
outputs: | ||
matrix: ${{ steps.set-matrix.outputs.matrix }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Extract the tested GHC versions | ||
id: set-matrix | ||
uses: kleidukos/[email protected] | ||
with: | ||
cabal-file: dump-decls.cabal | ||
version: 0.1.7.1 | ||
ubuntu-version: 'latest' | ||
tests: | ||
name: ${{ matrix.ghc }} on ${{ matrix.os }} | ||
needs: generate-matrix | ||
|
@@ -83,10 +98,12 @@ jobs: | |
path: ${{ env.GETTESTED_EXEC_TAR }} | ||
|
||
build-alpine: | ||
name: 9.10.1 on alpine-3.19 | ||
runs-on: ubuntu-latest | ||
name: ${{ matrix.ghc }} on alpine-3.19 | ||
needs: generate-alpine-matrix | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: ${{ fromJSON(needs.generate-alpine-matrix.outputs.matrix) }} | ||
container: 'alpine:3.19' | ||
needs: generate-matrix | ||
steps: | ||
- name: Install extra dependencies | ||
shell: sh | ||
|
@@ -102,7 +119,7 @@ jobs: | |
- uses: haskell-actions/setup@v2 | ||
id: setup-haskell | ||
with: | ||
ghc-version: '9.10.1' | ||
ghc-version: ${{ matrix.ghc }} | ||
cabal-version: 'latest' | ||
|
||
- name: Configure | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
-- GHC 9.10.1 Compatibility | ||
module GHC.Compat where | ||
|
||
import GHC (ModuleInfo, modInfoExports) | ||
Check warning on line 4 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on ubuntu-latest
Check warning on line 4 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on ubuntu-latest
Check warning on line 4 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on alpine-3.19
Check warning on line 4 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on macos-latest
Check warning on line 4 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on macos-latest
Check warning on line 4 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on alpine-3.19
Check warning on line 4 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on macos-latest
|
||
import GHC.Iface.Syntax (AltPpr (..), ShowForAllFlag (..), ShowHowMuch (..), ShowSub (..)) | ||
import GHC.Types.Name (OccName, nameOccName) | ||
Check warning on line 6 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on ubuntu-latest
Check warning on line 6 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on ubuntu-latest
Check warning on line 6 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on alpine-3.19
Check warning on line 6 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on macos-latest
Check warning on line 6 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on macos-latest
Check warning on line 6 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on alpine-3.19
Check warning on line 6 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on macos-latest
|
||
|
||
import DumpDecls.IgnoredDeclarations | ||
Check warning on line 8 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on ubuntu-latest
Check warning on line 8 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on ubuntu-latest
Check warning on line 8 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on alpine-3.19
Check warning on line 8 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on macos-latest
Check warning on line 8 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on macos-latest
Check warning on line 8 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on alpine-3.19
Check warning on line 8 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on macos-latest
|
||
|
||
mkShowSub :: ModuleInfo -> ShowSub | ||
mkShowSub mod_info = | ||
Check warning on line 11 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on ubuntu-latest
Check warning on line 11 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on ubuntu-latest
Check warning on line 11 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on alpine-3.19
Check warning on line 11 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on macos-latest
Check warning on line 11 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on macos-latest
Check warning on line 11 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on alpine-3.19
Check warning on line 11 in compat/9.8.2/GHC/Compat.hs GitHub Actions / 9.8.2 on macos-latest
|
||
let ss_how_much = ShowSome [] (AltPpr Nothing) | ||
in ShowSub | ||
{ ss_how_much = ss_how_much | ||
, ss_forall = ShowForAllMust | ||
} |