@@ -2,7 +2,7 @@ name: stack
2
2
3
3
on :
4
4
push :
5
- branches : [main, ci-stack ]
5
+ branches : [main, ci/check-versions ]
6
6
pull_request :
7
7
branches : [main]
8
8
19
19
steps :
20
20
- uses : actions/checkout@v4
21
21
22
- - name : Set up GHC and cabal-install
22
+ - name : Set up GHC and cabal-install from matrix
23
23
uses : haskell-actions/setup@v2
24
24
id : setup
25
25
with :
@@ -28,57 +28,15 @@ jobs:
28
28
enable-stack : true
29
29
stack-version : ' 2.15.7'
30
30
31
- - name : Set up GHC 8.10.7 for scripts
31
+ - name : Set up GHC 8.10.7 by itself
32
32
uses : haskell-actions/setup@v2
33
33
with :
34
34
ghc-version : " 8.10.7"
35
35
36
- - name : Configure stack
36
+ - name : Check installation
37
37
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