File tree Expand file tree Collapse file tree 3 files changed +47
-1
lines changed Expand file tree Collapse file tree 3 files changed +47
-1
lines changed Original file line number Diff line number Diff line change 35
35
restore-keys : bootstrap-${{ runner.os }}-${{ matrix.ghc }}-20221115-
36
36
37
37
- uses : actions/checkout@v3
38
+ # See https://github.com/haskell/cabal/pull/8739
39
+ - name : Sudo chmod to permit ghcup to update its cache
40
+ run : |
41
+ if [[ "${{ runner.os }}" == "Linux" ]]; then
42
+ sudo ls -lah /usr/local/.ghcup/cache
43
+ sudo mkdir -p /usr/local/.ghcup/cache
44
+ sudo ls -lah /usr/local/.ghcup/cache
45
+ sudo chown -R $USER /usr/local/.ghcup
46
+ sudo chmod -R 777 /usr/local/.ghcup
47
+ fi
38
48
- name : bootstrap.py
39
49
run : |
40
50
GHC_VERSION=${{ matrix.ghc }}
51
+ ghcup --version
41
52
ghcup config set cache true
42
53
ghcup install ghc $GHC_VERSION
43
54
Original file line number Diff line number Diff line change 28
28
with :
29
29
path : ~/.cabal/store
30
30
key : linux-store-meta
31
+ # See https://github.com/haskell/cabal/pull/8739
32
+ - name : Sudo chmod to permit ghcup to update its cache
33
+ run : |
34
+ if [[ "${{ runner.os }}" == "Linux" ]]; then
35
+ sudo ls -lah /usr/local/.ghcup/cache
36
+ sudo mkdir -p /usr/local/.ghcup/cache
37
+ sudo ls -lah /usr/local/.ghcup/cache
38
+ sudo chown -R $USER /usr/local/.ghcup
39
+ sudo chmod -R 777 /usr/local/.ghcup
40
+ fi
31
41
- name : ghcup
32
42
run : |
43
+ ghcup --version
33
44
ghcup config set cache true
34
45
ghcup install ghc recommended
35
46
ghcup set ghc recommended
66
77
with :
67
78
path : ~/.cabal/store
68
79
key : linux-store-doctest
80
+ # See https://github.com/haskell/cabal/pull/8739
81
+ - name : Sudo chmod to permit ghcup to update its cache
82
+ run : |
83
+ if [[ "${{ runner.os }}" == "Linux" ]]; then
84
+ sudo ls -lah /usr/local/.ghcup/cache
85
+ sudo mkdir -p /usr/local/.ghcup/cache
86
+ sudo ls -lah /usr/local/.ghcup/cache
87
+ sudo chown -R $USER /usr/local/.ghcup
88
+ sudo chmod -R 777 /usr/local/.ghcup
89
+ fi
69
90
- name : ghcup
70
91
run : |
92
+ ghcup --version
71
93
ghcup config set cache true
72
94
ghcup install ghc recommended
73
95
ghcup set ghc recommended
Original file line number Diff line number Diff line change 57
57
58
58
- uses : actions/checkout@v3
59
59
60
+ # See https://github.com/haskell/cabal/pull/8739
61
+ - name : Sudo chmod to permit ghcup to update its cache
62
+ run : |
63
+ if [[ "${{ runner.os }}" == "Linux" ]]; then
64
+ sudo ls -lah /usr/local/.ghcup/cache
65
+ sudo mkdir -p /usr/local/.ghcup/cache
66
+ sudo ls -lah /usr/local/.ghcup/cache
67
+ sudo chown -R $USER /usr/local/.ghcup
68
+ sudo chmod -R 777 /usr/local/.ghcup
69
+ fi
60
70
- uses : haskell/actions/setup@v2
61
71
id : setup-haskell
62
72
with :
65
75
66
76
# See the following link for a breakdown of the following step
67
77
# https://github.com/haskell/actions/issues/7#issuecomment-745697160
68
- - uses : actions/cache@v2
78
+ #
79
+ # See https://github.com/haskell/cabal/pull/8739 for why Windows is excluded
80
+ - if : ${{ runner.os != 'Windows' }}
81
+ uses : actions/cache@v2
69
82
with :
70
83
# validate.sh uses a special build dir
71
84
path : |
You can’t perform that action at this time.
0 commit comments