From 20cbf706caa4d1bc9aebb4c12ec3cd5ecc10597b Mon Sep 17 00:00:00 2001 From: Dominic Orchard Date: Thu, 12 Sep 2024 10:55:09 +0100 Subject: [PATCH] refix ci --- .github/workflows/ci.yml | 22 +++++++++++----------- .github/workflows/disabled/hackage.yml | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dae1d6c6..c923722f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,11 +17,11 @@ jobs: runs-on: ubuntu-latest name: Ubuntu / Stack / test steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v2 # relative paths are relative to the project directory - name: Cache Stack build artifacts (user + project) - uses: actions/cache@v4 + uses: actions/cache@v2 with: path: | ~/.stack @@ -69,7 +69,7 @@ jobs: # My issue on haskell/actions: https://github.com/haskell/actions/issues/41 # This also requires us to do a deep fetch, else we don't get the Git commit # history we need to rewrite mod times. - - uses: actions/checkout@v4 + - uses: actions/checkout@v2 with: fetch-depth: 0 - name: Set all tracked file modification times to the time of their last commit @@ -81,7 +81,7 @@ jobs: - name: Setup Haskell build environment id: setup-haskell-build-env - uses: haskell/actions/setup@v4 + uses: haskell/actions/setup@v2 with: ghc-version: ${{ matrix.ghc }} cabal-version: ${{ matrix.cabal }} @@ -89,7 +89,7 @@ jobs: - run: cabal freeze - name: Cache Cabal build artifacts - uses: actions/cache@v4 + uses: actions/cache@v2 with: path: | ${{ steps.setup-haskell-build-env.outputs.cabal-store }} @@ -114,11 +114,11 @@ jobs: steps: # TODO figure out timestamp fixer on Mac (no Mac available to test) - - uses: actions/checkout@v4 + - uses: actions/checkout@v2 - name: Setup Haskell build environment id: setup-haskell-build-env - uses: haskell/actions/setup@v4 + uses: haskell/actions/setup@v2 with: ghc-version: ${{ matrix.ghc }} cabal-version: ${{ matrix.cabal }} @@ -126,7 +126,7 @@ jobs: - run: cabal freeze - name: Cache Cabal build artifacts - uses: actions/cache@v4 + uses: actions/cache@v2 with: path: | ${{ steps.setup-haskell-build-env.outputs.cabal-store }} @@ -162,11 +162,11 @@ jobs: ghc: ["9.2"] steps: # TODO figure out timestamp fixer on Windows (need Bash) - - uses: actions/checkout@v4 + - uses: actions/checkout@v2 - name: Setup Haskell build environment id: setup-haskell-build-env - uses: haskell/actions/setup@v4 + uses: haskell/actions/setup@v2 with: ghc-version: ${{ matrix.ghc }} cabal-version: ${{ matrix.cabal }} @@ -174,7 +174,7 @@ jobs: - run: cabal freeze - name: Cache Cabal build artifacts - uses: actions/cache@v4 + uses: actions/cache@v2 with: path: | ${{ steps.setup-haskell-build-env.outputs.cabal-store }} diff --git a/.github/workflows/disabled/hackage.yml b/.github/workflows/disabled/hackage.yml index af6ae2ab..8143294c 100644 --- a/.github/workflows/disabled/hackage.yml +++ b/.github/workflows/disabled/hackage.yml @@ -34,7 +34,7 @@ jobs: # My issue on haskell/actions: https://github.com/haskell/actions/issues/41 # This also requires us to do a deep fetch, else we don't get the Git commit # history we need to rewrite mod times. - - uses: actions/checkout@v4 + - uses: actions/checkout@v2 with: fetch-depth: 0 - name: Set all tracked file modification times to the time of their last commit @@ -56,7 +56,7 @@ jobs: - run: cabal freeze - name: Cache global Cabal store - uses: actions/cache@v4 + uses: actions/cache@v2 with: path: ~/.cabal/store key: hackage-deps-${{ runner.os }}-ghc_${{ env.ghc }}