54
54
if : runner.os == 'Linux' && !startsWith(matrix.container, 'alpine')
55
55
run : sudo apt-get update && sudo apt-get install libgtk-3-dev
56
56
57
- - name : Install system dependencies (Windows)
58
- if : ${{ startsWith(matrix.os, 'windows') }}
59
- uses : msys2/setup-msys2@v2
60
- with :
61
- path-type : inherit
62
- install : >-
63
- mingw-w64-x86_64-pkg-config
64
- mingw-w64-x86_64-gtk3
65
-
66
57
- name : Install system dependencies (macOS)
67
58
if : runner.os == 'macOS'
68
59
run : brew install cairo gtk+3 pkg-config
@@ -72,13 +63,26 @@ jobs:
72
63
run : |
73
64
printf 'package gtk\n flags: +have-quartz-gtk' >>cabal.project
74
65
75
-
76
66
- name : Set up GHC ${{ matrix.ghc-version }}
77
67
uses : haskell-actions/setup@v2
78
68
id : setup
79
69
with :
80
70
ghc-version : ${{ matrix.ghc-version }}
81
71
72
+ # Taken from https://github.com/agda/agda/blob/8210048a50c35d8d6fd0ae7e5edd1699592fda6f/src/github/workflows/cabal.yml#L113C1-L124C85
73
+ # See: https://github.com/haskell/text-icu/pull/86
74
+ # pacman needs MSYS /usr/bin in PATH, but this breaks the latest cache action.
75
+ # - https://github.com/actions/cache/issues/1073
76
+ # MSYS' pkg-config needs MSYS /mingw64/bin which we can safely add to the PATH
77
+ #
78
+ - name : Install system dependencies (Windows)
79
+ if : ${{ startsWith(matrix.os, 'windows') }}
80
+ shell : pwsh
81
+ run : |
82
+ $env:PATH = "C:\msys64\usr\bin;$env:PATH"
83
+ pacman --noconfirm -S msys2-keyring mingw-w64-x86_64-pkgconf mingw-w64-x86_64-gtk3
84
+ echo "C:\msys64\mingw64\bin" | Out-File -FilePath "$env:GITHUB_PATH" -Append
85
+
82
86
- name : Enable static build (only on alpine)
83
87
if : ${{ startsWith(matrix.container, 'alpine') }}
84
88
run : |
0 commit comments