git.iko.soy/typeable/pandoc
on master help sign in
[CI] Use setup-haskell action
6195df7Nikolay Yakimov
.github/workflows/ci.yml+4−10
@@ -61,16 +61,10 @@ jobs:
61 # need to install older cabal/ghc versions from ppa repository
61 # need to install older cabal/ghc versions from ppa repository
62
62
63 - name: Install recent cabal/ghc
63 - name: Install recent cabal/ghc
64− run: |
64+ uses: actions/setup-haskell@v1.1
65− if [[ ! -d /opt/ghc/${{ matrix.versions.ghc }} ]]
65+ with:
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"
66+ ghc-version: ${{ matrix.versions.ghc }}
73− echo "::add-path::/opt/cabal/${{ matrix.versions.cabal }}/bin"
67+ cabal-version: ${{ matrix.versions.cabal }}
74
68
75 # declare/restore cached things
69 # declare/restore cached things
76 # caching doesn't work for scheduled runs yet
70 # caching doesn't work for scheduled runs yet