Skip to content

Commit ac9fab2

Browse files
committed
Install pkg-config on Windows
1 parent 5749297 commit ac9fab2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/validate.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,14 @@ jobs:
105105
cabal-version: latest # latest is mandatory for cabal-testsuite, see https://github.com/haskell/cabal/issues/8133
106106
ghcup-release-channel: https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.8.yaml
107107

108+
- if: runner.os == 'windows'
109+
name: Install windows dependencies
110+
run: |
111+
C:\msys64\usr\bin\bash -lc "pacman --disable-download-timeout --noconfirm -Syuu"
112+
C:\msys64\usr\bin\bash -lc "pacman --disable-download-timeout --noconfirm -S mingw-w64-x86_64-pkg-config"
113+
# Adjust cabal's configuration so it can find pkg-config
114+
cabal user-config -a "extra-prog-path: C:\msys64\usr\bin"
115+
108116
# See the following link for a breakdown of the following step
109117
# https://github.com/haskell/actions/issues/7#issuecomment-745697160
110118
- uses: actions/cache@v4

0 commit comments

Comments
 (0)