Fix language-c on windows

This commit is contained in:
Julian Ospald 2024-01-21 13:49:55 +08:00
parent e325728f38
commit c225f2cfee
No known key found for this signature in database
GPG Key ID: 4275CDA6A29BED43
3 changed files with 9 additions and 3 deletions

View File

@ -178,7 +178,7 @@ jobs:
ARCH: 64 ARCH: 64
- os: windows-latest - os: windows-latest
ARTIFACT: "x86_64-mingw64-ghcup" ARTIFACT: "x86_64-mingw64-ghcup"
GHC_VER: 9.2.8 GHC_VER: 9.4.8
ARCH: 64 ARCH: 64
steps: steps:
- name: Checkout code - name: Checkout code
@ -414,7 +414,7 @@ jobs:
DISTRO: na DISTRO: na
- os: windows-latest - os: windows-latest
ARTIFACT: "x86_64-mingw64-ghcup" ARTIFACT: "x86_64-mingw64-ghcup"
GHC_VER: 9.2.8 GHC_VER: 9.4.8
ARCH: 64 ARCH: 64
DISTRO: na DISTRO: na

View File

@ -12,6 +12,10 @@ else
constraints: http-io-streams -brotli, constraints: http-io-streams -brotli,
any.aeson >= 2.0.1.0 any.aeson >= 2.0.1.0
if os(mingw32)
if impl(ghc >= 9.4)
constraints: language-c >= 0.9.3
source-repository-package source-repository-package
type: git type: git
location: https://github.com/haskell/tar.git location: https://github.com/haskell/tar.git

View File

@ -19,6 +19,8 @@ elif os(mingw32)
lzma +static, lzma +static,
text -simdutf, text -simdutf,
vty-windows >=0.1.0.3 vty-windows >=0.1.0.3
if impl(ghc >= 9.4)
constraints: language-c >= 0.9.3
elif os(freebsd) elif os(freebsd)
constraints: zlib +bundled-c-zlib, constraints: zlib +bundled-c-zlib,
zip +disable-zstd zip +disable-zstd