Skip to content

Try each pkg-config query separatedly #1151

Try each pkg-config query separatedly

Try each pkg-config query separatedly #1151

Workflow file for this run

name: Assorted
on:
push:
branches:
- master
paths:
- 'changelog.d/*'
- '.github/workflows/changelogs.yml'
pull_request:
paths:
- 'changelog.d/*'
- '.github/workflows/changelogs.yml'
release:
types:
- created
defaults:
run:
shell: bash
jobs:
build:
name: Changelogs
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 from tarball due to
# https://github.com/haskell/cabal/issues/7360
- uses: actions/checkout@v4
with:
repository: "fgaz/changelog-d"
path: "changelog-d"
- name: Install changelog-d
run: |
pushd changelog-d
cabal v2-install
popd
- uses: actions/checkout@v4
- name: Run changelog-d
run: |
changelog-d changelog.d