@@ -24,21 +24,23 @@ jobs:
24
24
with :
25
25
path : ~/.local/state/cabal
26
26
key : linux-store-meta
27
- # See https://github.com/haskell/cabal/pull/8739
28
- - name : Sudo chmod to permit ghcup to update its cache
29
- if : runner.os == 'Linux'
30
- run : |
31
- sudo ls -lah /usr/local/.ghcup/cache
32
- sudo mkdir -p /usr/local/.ghcup/cache
33
- sudo ls -lah /usr/local/.ghcup/cache
34
- sudo chown -R "${USER}" /usr/local/.ghcup
35
- sudo chmod -R 777 /usr/local/.ghcup
36
- - name : ghcup
37
- run : |
38
- ghcup --version
39
- ghcup config set cache true
40
- ghcup install ghc recommended
41
- ghcup set ghc recommended
27
+ # OBSOLETE: workaround to fix ghcup directory rights.
28
+ # # See https://github.com/haskell/cabal/pull/8739
29
+ # - name: Sudo chmod to permit ghcup to update its cache
30
+ # if: runner.os == 'Linux'
31
+ # run: |
32
+ # sudo ls -lah /usr/local/.ghcup/cache
33
+ # sudo mkdir -p /usr/local/.ghcup/cache
34
+ # sudo ls -lah /usr/local/.ghcup/cache
35
+ # sudo chown -R "${USER}" /usr/local/.ghcup
36
+ # sudo chmod -R 777 /usr/local/.ghcup
37
+ # SKIP installation of ghc and cabal and use the preinstalled versions.
38
+ # - name: ghcup
39
+ # run: |
40
+ # ghcup --version
41
+ # ghcup config set cache true
42
+ # ghcup install ghc recommended
43
+ # ghcup set ghc recommended
42
44
- name : Update Hackage index
43
45
run : cabal v2-update
44
46
- name : Install alex
62
64
with :
63
65
path : ~/.local/state/cabal
64
66
key : linux-store-doctest
65
- # See https://github.com/haskell/cabal/pull/8739
66
- - name : Sudo chmod to permit ghcup to update its cache
67
- if : runner.os == 'Linux'
68
- run : |
69
- sudo ls -lah /usr/local/.ghcup/cache
70
- sudo mkdir -p /usr/local/.ghcup/cache
71
- sudo ls -lah /usr/local/.ghcup/cache
72
- sudo chown -R "${USER}" /usr/local/.ghcup
73
- sudo chmod -R 777 /usr/local/.ghcup
74
- - name : ghcup
75
- run : |
76
- ghcup --version
77
- ghcup config set cache true
78
- ghcup install ghc --set recommended
79
- ghcup install cabal --set latest
80
67
- name : Update Hackage index
81
68
run : cabal v2-update
82
69
- uses : actions/checkout@v4
92
79
with :
93
80
path : ~/.local/state/cabal
94
81
key : linux-store-buildinfo-doc-diff
95
- # See https://github.com/haskell/cabal/pull/8739
96
- - name : Sudo chmod to permit ghcup to update its cache
97
- if : runner.os == 'Linux'
98
- run : |
99
- sudo ls -lah /usr/local/.ghcup/cache
100
- sudo mkdir -p /usr/local/.ghcup/cache
101
- sudo ls -lah /usr/local/.ghcup/cache
102
- sudo chown -R "${USER}" /usr/local/.ghcup
103
- sudo chmod -R 777 /usr/local/.ghcup
104
- - name : ghcup
105
- run : |
106
- ghcup --version
107
- ghcup config set cache true
108
- ghcup install ghc --set recommended
109
- ghcup install cabal --set latest
110
82
- name : Update Hackage index
111
83
run : cabal v2-update
112
84
- uses : actions/checkout@v4
@@ -116,12 +88,6 @@ jobs:
116
88
name : Check Release Project
117
89
runs-on : ubuntu-latest
118
90
steps :
119
- - name : ghcup
120
- run : |
121
- ghcup --version
122
- ghcup config set cache true
123
- ghcup install ghc --set recommended
124
- ghcup install cabal --set latest
125
91
- name : Update Hackage Index
126
92
run : cabal v2-update
127
93
- uses : actions/checkout@v4
0 commit comments