linux CI: use ppa to install older ghc/cabal versions.
This commit is contained in:
parent
aa9bcce4f9
commit
2d9d779fbe
1 changed files with 14 additions and 3 deletions
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
|
@ -44,11 +44,11 @@ jobs:
|
|||
matrix:
|
||||
versions:
|
||||
- ghc: '8.0.2'
|
||||
cabal: '3.2'
|
||||
cabal: '2.4'
|
||||
- ghc: '8.2.2'
|
||||
cabal: '3.2'
|
||||
cabal: '2.4'
|
||||
- ghc: '8.4.4'
|
||||
cabal: '3.2'
|
||||
cabal: '2.4'
|
||||
- ghc: '8.6.5'
|
||||
cabal: '3.2'
|
||||
- ghc: '8.8.3'
|
||||
|
@ -58,6 +58,17 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
# need to install older cabal/ghc versions from ppa repository
|
||||
|
||||
- name: Install recent cabal/ghc
|
||||
run: |
|
||||
if [[ ! -d /opt/ghc/${{ matrix.versions.ghc }} ]]
|
||||
then
|
||||
sudo add-apt-repository ppa:hvr/ghc
|
||||
sudo apt-get update
|
||||
sudo apt-get install ghc-${{ matrix.versions.ghc }} cabal-install-${{ matrix.versions.cabal }}
|
||||
fi
|
||||
|
||||
# declare/restore cached things
|
||||
# caching doesn't work for scheduled runs yet
|
||||
# https://github.com/actions/cache/issues/63
|
||||
|
|
Loading…
Add table
Reference in a new issue