Skip to content

Commit

Permalink
Add ghc-9.0.1 to the build release script (#1940)
Browse files Browse the repository at this point in the history
* Add ghc-9.0.1 to the build release script

* ghc9: Enable module-name plugin

* Diagrams now supports ghc-9.0.1

* Upgrade cabal in build script

* Cache reset updating hackage index

Co-authored-by: jneira <[email protected]>
  • Loading branch information
anka-213 and jneira authored Jun 23, 2021
1 parent d4e2a6f commit 5f6ce4a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 24 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ghc: ['8.10.5', '8.10.4', '8.10.3', '8.10.2', '8.8.4', '8.8.3', '8.6.5', '8.6.4']
ghc: ['9.0.1', '8.10.5', '8.10.4', '8.10.3', '8.10.2', '8.8.4', '8.8.3', '8.6.5', '8.6.4']
os: [ubuntu-18.04, macOS-latest, windows-latest]
exclude:
- os: windows-latest
Expand All @@ -36,13 +36,17 @@ jobs:
- uses: haskell/actions/setup@v1
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: '3.2'
cabal-version: '3.4'

- if: ${{ matrix.ghc == '9.0.1' }}
name: Use modified cabal.project for ghc9
run: cp cabal-ghc901.project cabal.project

- name: Shorten binary names
run: |
sed -i.bak -e 's/haskell-language-server/hls/g' \
-e 's/haskell_language_server/hls/g' \
haskell-language-server.cabal
haskell-language-server.cabal cabal.project
sed -i.bak -e 's/Paths_haskell_language_server/Paths_hls/g' \
src/**/*.hs exe/*.hs
Expand Down
27 changes: 7 additions & 20 deletions cabal-ghc901.project
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,13 @@ source-repository-package
subdir: lsp-test
-- https://github.com/haskell/lsp/pull/312

source-repository-package
type: git
location: https://github.com/diagrams/active
tag: ca23431a8dfa013992f9164ccc882a3277361f17
-- https://github.com/diagrams/active/pull/36

write-ghc-environment-files: never

index-state: 2021-05-21T05:01:41Z
index-state: 2021-06-21T19:57:32Z

constraints:
-- Diagrams doesn't support optparse-applicative >= 0.16 yet
optparse-applicative < 0.16
-- These plugins doesn't work on GHC9 yet
, haskell-language-server -brittany -class -eval -fourmolu -modulename -ormolu -splice -stylishhaskell -tactic -refineImports
haskell-language-server -brittany -class -eval -fourmolu -ormolu -splice -stylishhaskell -tactic -refineImports


allow-newer:
Expand All @@ -112,7 +104,6 @@ allow-newer:
-- multistate:base,
-- ghc-source-gen:ghc,

active:base,
assoc:base,
cryptohash-md5:base,
cryptohash-sha1:base,
Expand All @@ -121,17 +112,13 @@ allow-newer:
deepseq:base,
dependent-sum:some,
dependent-sum:constraints,
diagrams-contrib:base,
diagrams-contrib:lens,
diagrams-contrib:random,
diagrams-core:base,
diagrams-core:lens,
diagrams-lib:base,
diagrams-lib:lens,
diagrams-postscript:base,
diagrams-postscript:lens,
diagrams-svg:base,
diagrams-svg:lens,
diagrams-postscript:diagrams-core,
diagrams-postscript:monoid-extras,
diagrams:diagrams-core,
Chart-diagrams:diagrams-core,
SVGFonts:diagrams-core,
dual-tree:base,
-- Does this make any sense?
entropy:Cabal,
Expand Down
2 changes: 1 addition & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ source-repository-package

write-ghc-environment-files: never

index-state: 2021-05-21T05:01:41Z
index-state: 2021-06-21T19:57:32Z

constraints:
-- Diagrams doesn't support optparse-applicative >= 0.16 yet
Expand Down

0 comments on commit 5f6ce4a

Please sign in to comment.