@@ -61,16 +61,10 @@ jobs:
6161 # need to install older cabal/ghc versions from ppa repository
6262
6363 - name: Install recent cabal/ghc
64− run: |
65− if [[ ! -d /opt/ghc/${{ matrix.versions.ghc }} ]]
66− then
67− sudo add-apt-repository ppa:hvr/ghc
68− sudo apt-get update
69− sudo apt-get install ghc-${{ matrix.versions.ghc }} cabal-install-${{ matrix.versions.cabal }}
70− fi
71− # Use a GitHub workflow command to add folders to PATH.
72− echo "::add-path::/opt/ghc/${{ matrix.versions.ghc }}/bin"
73− echo "::add-path::/opt/cabal/${{ matrix.versions.cabal }}/bin"
64+ uses: actions/setup-haskell@v1.1
65+ with:
66+ ghc-version: ${{ matrix.versions.ghc }}
67+ cabal-version: ${{ matrix.versions.cabal }}
7468
7569 # declare/restore cached things
7670 # caching doesn't work for scheduled runs yet