From 61d3c1827e2d91d6f86b7c1a5cab049cf0311bba Mon Sep 17 00:00:00 2001 From: Andrea Bedini Date: Wed, 22 Nov 2023 12:58:16 +0800 Subject: [PATCH] Migrate to haskell-actions/setup As of 2023-09-09, haskell/action/setup is no longer maintained. The comment # latest is mandatory for cabal-testsuite, see https://github.com/haskell/cabal/issues/8133 is removed; as the validate job was already fixing a version of cabal-install. (cherry picked from commit 8e09697082118f6209ac9cc38b0780043e5f1c7e) # Conflicts: # .github/workflows/validate.yml --- .github/workflows/validate.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 252dc742e5f..16ddf6c3bba 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -67,7 +67,7 @@ jobs: sudo chown -R $USER /usr/local/.ghcup sudo chmod -R 777 /usr/local/.ghcup fi - - uses: haskell/actions/setup@v2 + - uses: haskell-actions/setup@v2 id: setup-haskell with: ghc-version: ${{ matrix.ghc }} @@ -356,11 +356,12 @@ jobs: apt-get update apt-get install -y ghc-${{ matrix.extra-ghc }}-dyn - - uses: haskell/actions/setup@v2 + - uses: haskell-actions/setup@v2 id: setup-haskell with: ghc-version: ${{ matrix.ghc }} - cabal-version: '3.10.1.0' + # Make sure this bindist works in this old environment + cabal-version: 3.10.1.0 # As we are reusing the cached build dir from the previous step # the generated artifacts are available here, @@ -415,7 +416,7 @@ jobs: sudo chown -R $USER /usr/local/.ghcup sudo chmod -R 777 /usr/local/.ghcup fi - - uses: haskell/actions/setup@v2 + - uses: haskell-actions/setup@v2 id: setup-haskell with: ghc-version: ${{ matrix.ghc }}