From 8033d9b3607210dc97bb1f759c8e91d3b9362abc Mon Sep 17 00:00:00 2001 From: Ryan Scott Date: Sat, 10 Aug 2024 12:25:06 -0400 Subject: [PATCH] ghc --info on macos-14 --- .github/workflows/ci.yml | 43 +++------------------------------------- 1 file changed, 3 insertions(+), 40 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a6286db..9814fd5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,24 +5,15 @@ on: branches: [main] pull_request: -env: - # The CACHE_VERSION can be updated to force the use of a new cache if - # the current cache contents become corrupted/invalid. This can - # sometimes happen when (for example) the OS version is changed but - # older .so files are cached, which can have various effects - # (e.g. cabal complains it can't find a valid version of the "happy" - # tool). - CACHE_VERSION: 1 - jobs: build: runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - os: [ubuntu-22.04] + os: [macos-14] ghc-version: ["9.4.8"] - cabal: [ '3.10.2.0' ] + cabal: [ '3.10.3.0' ] steps: - uses: actions/checkout@v2 with: @@ -34,33 +25,5 @@ jobs: ghc-version: ${{ matrix.ghc-version }} cabal-version: ${{ matrix.cabal }} - - uses: actions/cache/restore@v3 - name: Restore cabal store cache - with: - path: | - ${{ steps.setup-haskell.outputs.cabal-store }} - dist-newstyle - key: ${{ env.CACHE_VERSION }}-cabal-${{ matrix.os }}-${{ matrix.ghc-version }}-${{ hashFiles(format('cabal.GHC-{0}.config', matrix.ghc-version)) }}-${{ github.sha }} - restore-keys: | - ${{ env.CACHE_VERSION }}-cabal-${{ matrix.os }}-${{ matrix.ghc-version }}-${{ hashFiles(format('cabal.GHC-{0}.config', matrix.ghc-version)) }}- - - - shell: bash - name: Update - run: cabal update - - shell: bash - name: Configure - run: cabal configure --enable-tests -j2 all - - - shell: bash - name: Build - run: cabal build - - - uses: actions/cache/save@v3 - name: Save cabal store cache - if: always() - with: - path: | - ${{ steps.setup-haskell.outputs.cabal-store }} - dist-newstyle - key: ${{ env.CACHE_VERSION }}-cabal-${{ matrix.os }}-${{ matrix.ghc-version }}-${{ hashFiles(format('cabal.GHC-{0}.config', matrix.ghc-version)) }}-${{ github.sha }} + run: ghc --info