Skip to content

Commit

Permalink
CI: install changelog-d from bindist (#10048)
Browse files Browse the repository at this point in the history
This will avoid build problems when the GHC in the CI environment
is updated sooner than expected.
Previous breakage: #9177 (comment)

(cherry picked from commit d1a6ced)

# Conflicts:
#	.github/workflows/changelogs.yml
  • Loading branch information
fgaz authored and mergify[bot] committed May 23, 2024
1 parent 5cd189c commit 0b38228
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/changelogs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:

steps:

<<<<<<< HEAD
# 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.
Expand All @@ -47,15 +48,14 @@ jobs:
curl "https://codeberg.org/fgaz/changelog-d/archive/$changelog_d_latest.tar.gz" -o changelog-d.tar.gz
tar -xf changelog-d.tar.gz
working-directory: changelog-d
=======
- name: Install changelog-d
>>>>>>> d1a6ced03 (CI: install changelog-d from bindist (#10048))
run: |
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 }}
curl --create-dirs -o "$HOME/.local/bin/changelog-d" "https://codeberg.org/fgaz/changelog-d/releases/download/v1.0/changelog-d-v1.0-x86_64-linux"
chmod +x "$HOME/.local/bin/changelog-d"
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Checkout cabal sources
uses: actions/checkout@v4
Expand Down

0 comments on commit 0b38228

Please sign in to comment.