Skip to content

Commit c209a82

Browse files
committed
CI quick-jobs: use preinstalled GHC and Cabal
1 parent e916cb5 commit c209a82

File tree

1 file changed

+17
-51
lines changed

1 file changed

+17
-51
lines changed

.github/workflows/quick-jobs.yml

Lines changed: 17 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,23 @@ jobs:
2424
with:
2525
path: ~/.local/state/cabal
2626
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
4244
- name: Update Hackage index
4345
run: cabal v2-update
4446
- name: Install alex
@@ -62,21 +64,6 @@ jobs:
6264
with:
6365
path: ~/.local/state/cabal
6466
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
8067
- name: Update Hackage index
8168
run: cabal v2-update
8269
- uses: actions/checkout@v4
@@ -92,21 +79,6 @@ jobs:
9279
with:
9380
path: ~/.local/state/cabal
9481
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
11082
- name: Update Hackage index
11183
run: cabal v2-update
11284
- uses: actions/checkout@v4
@@ -116,12 +88,6 @@ jobs:
11688
name: Check Release Project
11789
runs-on: ubuntu-latest
11890
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
12591
- name: Update Hackage Index
12692
run: cabal v2-update
12793
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)