Skip to content

Commit 45a14a7

Browse files
committed
Check versions
1 parent 4428db1 commit 45a14a7

File tree

1 file changed

+9
-51
lines changed

1 file changed

+9
-51
lines changed

.github/workflows/stack.yml

Lines changed: 9 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: stack
22

33
on:
44
push:
5-
branches: [main, ci-stack]
5+
branches: [main, ci/check-versions]
66
pull_request:
77
branches: [main]
88

@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v4
2121

22-
- name: Set up GHC and cabal-install
22+
- name: Set up GHC and cabal-install from matrix
2323
uses: haskell-actions/setup@v2
2424
id: setup
2525
with:
@@ -28,57 +28,15 @@ jobs:
2828
enable-stack: true
2929
stack-version: '2.15.7'
3030

31-
- name: Set up GHC 8.10.7 for scripts
31+
- name: Set up GHC 8.10.7 by itself
3232
uses: haskell-actions/setup@v2
3333
with:
3434
ghc-version: "8.10.7"
3535

36-
- name: Configure stack
36+
- name: Check installation
3737
run: |
38-
stack config set system-ghc --global true
39-
stack config set install-ghc --global false
40-
41-
- name: Update hackage index
42-
run: cabal update --ignore-project
43-
44-
- name: Install Dhall
45-
uses: dhall-lang/setup-dhall@v4
46-
with:
47-
version: '1.42.0'
48-
49-
- name: Updo
50-
run: GHC_VERSION=${{ matrix.vers.ghc }} STACKAGE_VERSION=${{ matrix.vers.stackage }} make -f project-files.mk stack.yaml
51-
52-
# Generate a file to cache dependencies.
53-
- name: build
54-
run: stack ls dependencies json | jq > stack-deps.json
55-
56-
- name: build
57-
run: stack test --no-run-tests --no-terminal --only-dependencies
58-
59-
- name: Restore cached dependency of Pantry (Stackage package index)
60-
uses: actions/cache/restore@v4
61-
id: pantry
62-
env:
63-
key: ghc-${{ steps.setup.outputs.ghc-version }}-stack-${{ steps.setup.outputs.stack-version }}
64-
with:
65-
path: ${{ steps.setup.outputs.stack-root }}/pantry
66-
key: ${{ env.key }}-plan-${{ hashFiles('stack-deps.json') }}
67-
restore-keys: ${{ env.key }}-
68-
69-
- name: Recompute Stackage package index (~/.stack/pantry)
70-
if: steps.pantry.outputs.cache-hit != 'true'
71-
run: stack update
72-
73-
- name: Save cached dependencies
74-
uses: actions/cache/save@v4
75-
if: steps.pantry.outputs.cache-hit != 'true'
76-
with:
77-
path: ${{ steps.setup.outputs.stack-root }}/pantry
78-
key: ${{ steps.cache.outputs.cache-primary-key }}
79-
80-
- name: build
81-
run: stack test --no-run-tests --no-terminal
82-
83-
- name: test golden
84-
run: stack test hpack-dhall:golden --no-terminal --test-arguments "--color=always"
38+
ghc --version
39+
ghc-9.8.2 --version
40+
ghc-8.10.7 --version
41+
cabal --version
42+
stack --version

0 commit comments

Comments
 (0)