aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2022-03-24 09:26:47 -0700
committerJohn MacFarlane <[email protected]>2022-03-24 09:26:47 -0700
commit8d045653948d7e522486203507d1edeb356a6fd3 (patch)
tree01e21d70ab67a990b8fca9664b17e7f51a1f62e6 /.github/workflows
parentdff340ed50f019a1114cb98b8513538b0a0d1e86 (diff)
Replace haskell/actions/setup with ghcup.
ghcup is installed by default on the GitHub runners. This allows us to avoid relying on a third-party action and may render #7984 irrelevant.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml26
1 files changed, 8 insertions, 18 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 0213f40c2..b4bbd89fa 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -119,12 +119,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- # We should have ghc 8.10, cabal, stack pre-installed
- # - uses: haskell/actions/setup@v1
- # with:
- # enable-stack: true
- # stack-version: 'latest'
-
# declare/restore cached things
# caching doesn't work for scheduled runs yet
# https://github.com/actions/cache/issues/63
@@ -168,11 +162,10 @@ jobs:
steps:
- uses: actions/checkout@v2
- - name: Install recent cabal/ghc
- uses: haskell/actions/setup@v1
- with:
- ghc-version: ${{ matrix.versions.ghc }}
- cabal-version: ${{ matrix.versions.cabal }}
+ - name: Install cabal/ghc
+ run: |
+ ghcup install ghc --set ${{ matrix.versions.ghc }}
+ ghcup install cabal ${{ matrix.versions.cabal }}
# declare/restore cached things
# caching doesn't work for scheduled runs yet
@@ -219,13 +212,10 @@ jobs:
steps:
- uses: actions/checkout@v2
- # need to install older cabal/ghc versions from ppa repository
-
- - name: Install recent cabal/ghc
- uses: haskell/actions/setup@v1
- with:
- ghc-version: ${{ matrix.versions.ghc }}
- cabal-version: ${{ matrix.versions.cabal }}
+ - name: Install cabal/ghc
+ run: |
+ ghcup install ghc --set ${{ matrix.versions.ghc }}
+ ghcup install cabal ${{ matrix.versions.cabal }}
# declare/restore cached things
# caching doesn't work for scheduled runs yet