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
Glasgow Haskell Compiler
Packages
Cabal
Commits
e125959e
Unverified
Commit
e125959e
authored
11 months ago
by
mergify[bot]
Committed by
GitHub
11 months ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #9849 from haskell/ci-changelogs
CI changelogs: switch to XDG, fix cache key
parents
21c87806
af5d6061
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#92402
failed
11 months ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/changelogs.yml
+34
-29
34 additions, 29 deletions
.github/workflows/changelogs.yml
with
34 additions
and
29 deletions
.github/workflows/changelogs.yml
+
34
−
29
View file @
e125959e
name
:
Assorted
name
:
Changelogs
on
:
push
:
...
...
@@ -25,43 +25,48 @@ jobs:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Set PATH
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#adding-a-system-path
run
:
|
echo "$HOME/.cabal/bin" >> $GITHUB_PATH
-
uses
:
actions/cache@v3
with
:
path
:
~/.cabal/store
key
:
linux-store-changelogs
# See https://github.com/haskell/cabal/pull/8739
-
name
:
Sudo chmod to permit ghcup to update its cache
run
:
|
if [[ "${{ runner.os }}" == "Linux" ]]; then
sudo mkdir -p /usr/local/.ghcup/cache
sudo chown -R $USER /usr/local/.ghcup
sudo chmod -R 777 /usr/local/.ghcup
fi
-
name
:
ghcup
run
:
|
ghcup config set cache true
ghcup install ghc recommended
ghcup set ghc recommended
-
name
:
Update Hackage index
run
:
cabal v2-update
# Cannot install it directly from remote tarball due to
# Cannot install changelog-d directly from remote tarball due to
# https://github.com/haskell/cabal/issues/7360
# Also, we would like to get the build plan for the cache key.
-
name
:
Fetch changelog-d
run
:
|
changelog_d_latest="$(curl https://codeberg.org/api/v1/repos/fgaz/changelog-d/branches/master | jq -r .commit.id)"
echo "Using changelog-d revision $changelog_d_latest"
curl "https://codeberg.org/fgaz/changelog-d/archive/$changelog_d_latest.tar.gz" -o changelog-d.tar.gz
tar -xf changelog-d.tar.gz
-
name
:
Update Hackage index
run
:
cabal v2-update
-
name
:
Build plan for changelog-d
working-directory
:
changelog-d
run
:
|
cabal v2-build --dry-run --allow-newer=changelog-d:base
-
name
:
Restore dependencies of changelog-d
uses
:
actions/cache/restore@v4
id
:
cache
with
:
path
:
~/.local/state/cabal
key
:
linux-store-changelogs-${{ hashfiles('changelog-d/dist-newstyle/cache/plan.json') }}
restore-keys
:
linux-store-changelogs
-
name
:
Install changelog-d
working-directory
:
changelog-d
run
:
|
pushd changelog-d
cabal v2-install
popd
-
uses
:
actions/checkout@v4
cabal v2-install --allow-newer=changelog-d:base
-
name
:
Cache dependencies of changelog-d
uses
:
actions/cache/save@v4
if
:
always() && steps.cache.outputs.cache-hit != 'true'
with
:
path
:
~/.local/state/cabal
key
:
${{ steps.cache.outputs.cache-primary-key }}
-
name
:
Checkout cabal sources
uses
:
actions/checkout@v4
-
name
:
Run changelog-d
run
:
|
changelog-d changelog.d
This diff is collapsed.
Click to expand it.
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