Skip to content
Snippets Groups Projects
Commit c209a827 authored by andreas.abel's avatar andreas.abel
Browse files

CI quick-jobs: use preinstalled GHC and Cabal

parent e916cb59
No related branches found
No related tags found
No related merge requests found
......@@ -24,21 +24,23 @@ jobs:
with:
path: ~/.local/state/cabal
key: linux-store-meta
# See https://github.com/haskell/cabal/pull/8739
- name: Sudo chmod to permit ghcup to update its cache
if: runner.os == 'Linux'
run: |
sudo ls -lah /usr/local/.ghcup/cache
sudo mkdir -p /usr/local/.ghcup/cache
sudo ls -lah /usr/local/.ghcup/cache
sudo chown -R "${USER}" /usr/local/.ghcup
sudo chmod -R 777 /usr/local/.ghcup
- name: ghcup
run: |
ghcup --version
ghcup config set cache true
ghcup install ghc recommended
ghcup set ghc recommended
# OBSOLETE: workaround to fix ghcup directory rights.
# # See https://github.com/haskell/cabal/pull/8739
# - name: Sudo chmod to permit ghcup to update its cache
# if: runner.os == 'Linux'
# run: |
# sudo ls -lah /usr/local/.ghcup/cache
# sudo mkdir -p /usr/local/.ghcup/cache
# sudo ls -lah /usr/local/.ghcup/cache
# sudo chown -R "${USER}" /usr/local/.ghcup
# sudo chmod -R 777 /usr/local/.ghcup
# SKIP installation of ghc and cabal and use the preinstalled versions.
# - name: ghcup
# run: |
# ghcup --version
# ghcup config set cache true
# ghcup install ghc recommended
# ghcup set ghc recommended
- name: Update Hackage index
run: cabal v2-update
- name: Install alex
......@@ -62,21 +64,6 @@ jobs:
with:
path: ~/.local/state/cabal
key: linux-store-doctest
# See https://github.com/haskell/cabal/pull/8739
- name: Sudo chmod to permit ghcup to update its cache
if: runner.os == 'Linux'
run: |
sudo ls -lah /usr/local/.ghcup/cache
sudo mkdir -p /usr/local/.ghcup/cache
sudo ls -lah /usr/local/.ghcup/cache
sudo chown -R "${USER}" /usr/local/.ghcup
sudo chmod -R 777 /usr/local/.ghcup
- name: ghcup
run: |
ghcup --version
ghcup config set cache true
ghcup install ghc --set recommended
ghcup install cabal --set latest
- name: Update Hackage index
run: cabal v2-update
- uses: actions/checkout@v4
......@@ -92,21 +79,6 @@ jobs:
with:
path: ~/.local/state/cabal
key: linux-store-buildinfo-doc-diff
# See https://github.com/haskell/cabal/pull/8739
- name: Sudo chmod to permit ghcup to update its cache
if: runner.os == 'Linux'
run: |
sudo ls -lah /usr/local/.ghcup/cache
sudo mkdir -p /usr/local/.ghcup/cache
sudo ls -lah /usr/local/.ghcup/cache
sudo chown -R "${USER}" /usr/local/.ghcup
sudo chmod -R 777 /usr/local/.ghcup
- name: ghcup
run: |
ghcup --version
ghcup config set cache true
ghcup install ghc --set recommended
ghcup install cabal --set latest
- name: Update Hackage index
run: cabal v2-update
- uses: actions/checkout@v4
......@@ -116,12 +88,6 @@ jobs:
name: Check Release Project
runs-on: ubuntu-latest
steps:
- name: ghcup
run: |
ghcup --version
ghcup config set cache true
ghcup install ghc --set recommended
ghcup install cabal --set latest
- name: Update Hackage Index
run: cabal v2-update
- uses: actions/checkout@v4
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment