From 45a14a753cef0f7f190fd8979d27fcd1a4ffe719 Mon Sep 17 00:00:00 2001 From: Phil de Joux Date: Thu, 23 May 2024 06:34:48 -0400 Subject: [PATCH] Check versions --- .github/workflows/stack.yml | 60 ++++++------------------------------- 1 file changed, 9 insertions(+), 51 deletions(-) diff --git a/.github/workflows/stack.yml b/.github/workflows/stack.yml index 1088f7d..e39177d 100644 --- a/.github/workflows/stack.yml +++ b/.github/workflows/stack.yml @@ -2,7 +2,7 @@ name: stack on: push: - branches: [main, ci-stack] + branches: [main, ci/check-versions] pull_request: branches: [main] @@ -19,7 +19,7 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up GHC and cabal-install + - name: Set up GHC and cabal-install from matrix uses: haskell-actions/setup@v2 id: setup with: @@ -28,57 +28,15 @@ jobs: enable-stack: true stack-version: '2.15.7' - - name: Set up GHC 8.10.7 for scripts + - name: Set up GHC 8.10.7 by itself uses: haskell-actions/setup@v2 with: ghc-version: "8.10.7" - - name: Configure stack + - name: Check installation run: | - stack config set system-ghc --global true - stack config set install-ghc --global false - - - name: Update hackage index - run: cabal update --ignore-project - - - name: Install Dhall - uses: dhall-lang/setup-dhall@v4 - with: - version: '1.42.0' - - - name: Updo - run: GHC_VERSION=${{ matrix.vers.ghc }} STACKAGE_VERSION=${{ matrix.vers.stackage }} make -f project-files.mk stack.yaml - - # Generate a file to cache dependencies. - - name: build - run: stack ls dependencies json | jq > stack-deps.json - - - name: build - run: stack test --no-run-tests --no-terminal --only-dependencies - - - name: Restore cached dependency of Pantry (Stackage package index) - uses: actions/cache/restore@v4 - id: pantry - env: - key: ghc-${{ steps.setup.outputs.ghc-version }}-stack-${{ steps.setup.outputs.stack-version }} - with: - path: ${{ steps.setup.outputs.stack-root }}/pantry - key: ${{ env.key }}-plan-${{ hashFiles('stack-deps.json') }} - restore-keys: ${{ env.key }}- - - - name: Recompute Stackage package index (~/.stack/pantry) - if: steps.pantry.outputs.cache-hit != 'true' - run: stack update - - - name: Save cached dependencies - uses: actions/cache/save@v4 - if: steps.pantry.outputs.cache-hit != 'true' - with: - path: ${{ steps.setup.outputs.stack-root }}/pantry - key: ${{ steps.cache.outputs.cache-primary-key }} - - - name: build - run: stack test --no-run-tests --no-terminal - - - name: test golden - run: stack test hpack-dhall:golden --no-terminal --test-arguments "--color=always" + ghc --version + ghc-9.8.2 --version + ghc-8.10.7 --version + cabal --version + stack --version