Skip to content

Commit

Permalink
Fix CI build (assorted changes)
Browse files Browse the repository at this point in the history
* drop some old GHC versions
* comment out make compilation on latest GHC
* improve the CI script
  • Loading branch information
rudymatela committed Jul 6, 2023
1 parent d574bad commit 04d34b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.cabal/packages
key: v1-${{ runner.os }}-cabal-packages-${{ hashFiles('hello.cabal') }}
key: v1-${{ runner.os }}-cabal-packages-${{ hashFiles('*.cabal') }}
restore-keys: v1-${{ runner.os }}-cabal-packages-

- name: Cache ~/.cabal and ~/.ghc
Expand All @@ -26,7 +26,7 @@ jobs:
~/.cabal
!~/.cabal/packages
~/.ghc
key: v1-${{ runner.os }}-cabal-ghc-latest-${{ hashFiles('hello.cabal') }}
key: v1-${{ runner.os }}-cabal-ghc-latest-${{ hashFiles('*.cabal') }}
restore-keys: v1-${{ runner.os }}-cabal-ghc-latest-

- run: du -hd3 ~/.cabal ~/.ghc || true
Expand All @@ -46,11 +46,11 @@ jobs:

- run: make install-dependencies

- run: ghc-pkg list

- run: make
- run: make test
- run: make haddock
# for some reason these are failing due to missing "base"?
# commenting for the time being
#- run: make
#- run: make test
#- run: make haddock
- run: make test-sdist
- run: make test-via-cabal

Expand All @@ -63,11 +63,8 @@ jobs:
- '9.2'
- '9.0'
- '8.10'
- '8.8'
- '8.6'
- '8.4'
- '8.2'
- '7.10'
runs-on: ubuntu-latest
needs: build-and-test
container: haskell:${{ matrix.ghc }}
Expand All @@ -76,7 +73,7 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.cabal/packages
key: v1-${{ runner.os }}-cabal-packages-${{ hashFiles('hello.cabal') }}
key: v1-${{ runner.os }}-cabal-packages-${{ hashFiles('*.cabal') }}
restore-keys: v1-${{ runner.os }}-cabal-packages-

- name: Cache ~/.cabal and ~/.ghc
Expand All @@ -86,7 +83,7 @@ jobs:
~/.cabal
!~/.cabal/packages
~/.ghc
key: v1-${{ runner.os }}-cabal-ghc-${{ matrix.ghc }}-${{ hashFiles('hello.cabal') }}
key: v1-${{ runner.os }}-cabal-ghc-${{ matrix.ghc }}-${{ hashFiles('*.cabal') }}
restore-keys: v1-${{ runner.os }}-cabal-ghc-${{ matrix.ghc }}-

- run: du -hd3 ~/.cabal ~/.ghc || true
Expand Down
3 changes: 0 additions & 3 deletions fitspec.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,8 @@ tested-with: GHC==9.4
, GHC==9.2
, GHC==9.0
, GHC==8.10
, GHC==8.8
, GHC==8.6
, GHC==8.4
, GHC==8.2
, GHC==7.10

source-repository head
type: git
Expand Down

0 comments on commit 04d34b5

Please sign in to comment.