git.iko.soy/typeable/pandoc
on master help sign in
[CI] Use setup-haskell action
commit6195df74c360db6455eeea2ec5676483a3e5c044 authorNikolay Yakimov <root@livid.pp.ru> dateMon 13 Jul 2020, 19:28 (6 years ago) parent695e864
1 file changed+4−10
.github/workflows/ci.yml+4−10
.github/workflows/ci.yml+4−10
@@ -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