Skip to content

Commit

Permalink
CI quick-jobs: use preinstalled GHC and Cabal
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasabel committed Apr 2, 2024
1 parent e916cb5 commit c209a82
Showing 1 changed file with 17 additions and 51 deletions.
68 changes: 17 additions & 51 deletions .github/workflows/quick-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c209a82

Please sign in to comment.