Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Haskell
Cabal
Commits
c209a827
Commit
c209a827
authored
1 year ago
by
andreas.abel
Browse files
Options
Downloads
Patches
Plain Diff
CI quick-jobs: use preinstalled GHC and Cabal
parent
e916cb59
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/quick-jobs.yml
+17
-51
17 additions, 51 deletions
.github/workflows/quick-jobs.yml
with
17 additions
and
51 deletions
.github/workflows/quick-jobs.yml
+
17
−
51
View file @
c209a827
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
andreas.abel
@trac-andreas.abel
mentioned in commit
167d108c
·
10 months ago
mentioned in commit
167d108c
mentioned in commit 167d108c7fe6840da9a333694976e427e50e4b4e
Toggle commit list
Mikolaj Konarski
@Mikolaj
mentioned in commit
f2999b3c
·
10 months ago
mentioned in commit
f2999b3c
mentioned in commit f2999b3c89ccfe081fdeae26e475b315e842e746
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment