Skip to content

Commit

Permalink
Merge branch 'xz'
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Nov 19, 2024
2 parents a32a559 + 782b83c commit 0dfd6e6
Show file tree
Hide file tree
Showing 21 changed files with 79 additions and 62 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bootstrap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
include:
- os: ubuntu-latest
DISTRO: Ubuntu
- os: macOS-12
- os: macOS-13
DISTRO: na
- os: windows-latest
DISTRO: na
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cabal.project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macOS-12, windows-latest, ubuntu-latest]
os: [macOS-13, windows-latest, ubuntu-latest]
ghc: ["8.10.7", "9.0.2", "9.2.8", "9.4.8", "9.6.6"]
include:
- os: macOS-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ jobs:
ARTIFACT: "aarch64-apple-darwin-ghcup"
GHC_VER: 9.6.6
ARCH: ARM64
- os: macOS-12
- os: macOS-13
ARTIFACT: "x86_64-apple-darwin-ghcup"
GHC_VER: 9.6.6
ARCH: 64
Expand Down Expand Up @@ -431,7 +431,7 @@ jobs:
GHC_VER: 9.6.6
ARCH: ARM64
DISTRO: na
- os: macOS-12
- os: macOS-13
ARTIFACT: "x86_64-apple-darwin-ghcup"
GHC_VER: 9.6.6
ARCH: 64
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macOS-latest, macOS-12, windows-latest, ubuntu-latest]
os: [macOS-latest, macOS-13, windows-latest, ubuntu-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion cabal.ghc8107.Unix.project.freeze
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,4 @@ constraints: any.Cabal ==3.10.3.0,
any.zlib ==0.6.3.0,
zlib -bundled-c-zlib -non-blocking-ffi -pkg-config,
any.zlib-bindings ==0.1.1.5
index-state: hackage.haskell.org 2024-08-25T14:11:43Z
index-state: hackage.haskell.org 2024-11-15T05:14:10Z
2 changes: 1 addition & 1 deletion cabal.ghc8107.Win32.project.freeze
Original file line number Diff line number Diff line change
Expand Up @@ -213,4 +213,4 @@ constraints: any.Cabal ==3.10.3.0,
yaml +no-examples +no-exe,
any.zlib ==0.6.3.0,
zlib +bundled-c-zlib -non-blocking-ffi -pkg-config
index-state: hackage.haskell.org 2024-08-27T01:59:55Z
index-state: hackage.haskell.org 2024-11-15T05:14:10Z
2 changes: 1 addition & 1 deletion cabal.ghc902.Unix.project.freeze
Original file line number Diff line number Diff line change
Expand Up @@ -233,4 +233,4 @@ constraints: any.Cabal ==3.10.3.0,
any.zlib-bindings ==0.1.1.5,
any.zstd ==0.1.3.0,
zstd +standalone
index-state: hackage.haskell.org 2024-08-25T14:11:43Z
index-state: hackage.haskell.org 2024-11-15T05:14:10Z
2 changes: 1 addition & 1 deletion cabal.ghc902.Win32.project.freeze
Original file line number Diff line number Diff line change
Expand Up @@ -219,4 +219,4 @@ constraints: any.Cabal ==3.10.3.0,
zlib +bundled-c-zlib -non-blocking-ffi -pkg-config,
any.zstd ==0.1.3.0,
zstd +standalone
index-state: hackage.haskell.org 2024-08-27T01:59:55Z
index-state: hackage.haskell.org 2024-11-15T05:14:10Z
2 changes: 1 addition & 1 deletion cabal.ghc928.Unix.project.freeze
Original file line number Diff line number Diff line change
Expand Up @@ -233,4 +233,4 @@ constraints: any.Cabal ==3.10.3.0,
any.zlib-bindings ==0.1.1.5,
any.zstd ==0.1.3.0,
zstd +standalone
index-state: hackage.haskell.org 2024-08-25T14:11:43Z
index-state: hackage.haskell.org 2024-11-15T05:14:10Z
2 changes: 1 addition & 1 deletion cabal.ghc928.Win32.project.freeze
Original file line number Diff line number Diff line change
Expand Up @@ -219,4 +219,4 @@ constraints: any.Cabal ==3.10.3.0,
zlib +bundled-c-zlib -non-blocking-ffi -pkg-config,
any.zstd ==0.1.3.0,
zstd +standalone
index-state: hackage.haskell.org 2024-08-27T01:59:55Z
index-state: hackage.haskell.org 2024-11-15T05:14:10Z
2 changes: 1 addition & 1 deletion cabal.ghc948.Unix.project.freeze
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,4 @@ constraints: any.Cabal ==3.10.3.0,
any.zlib-bindings ==0.1.1.5,
any.zstd ==0.1.3.0,
zstd +standalone
index-state: hackage.haskell.org 2024-08-25T14:11:43Z
index-state: hackage.haskell.org 2024-11-15T05:14:10Z
2 changes: 1 addition & 1 deletion cabal.ghc948.Win32.project.freeze
Original file line number Diff line number Diff line change
Expand Up @@ -217,4 +217,4 @@ constraints: any.Cabal ==3.10.3.0,
zlib +bundled-c-zlib -non-blocking-ffi -pkg-config,
any.zstd ==0.1.3.0,
zstd +standalone
index-state: hackage.haskell.org 2024-08-27T01:59:55Z
index-state: hackage.haskell.org 2024-11-15T05:14:10Z
2 changes: 1 addition & 1 deletion cabal.ghc966.Unix.project.freeze
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,4 @@ constraints: any.Cabal ==3.10.3.0,
any.zlib-bindings ==0.1.1.5,
any.zstd ==0.1.3.0,
zstd +standalone
index-state: hackage.haskell.org 2024-08-25T14:11:43Z
index-state: hackage.haskell.org 2024-11-15T05:14:10Z
2 changes: 1 addition & 1 deletion cabal.ghc966.Win32.project.freeze
Original file line number Diff line number Diff line change
Expand Up @@ -214,4 +214,4 @@ constraints: any.Cabal ==3.10.3.0,
zlib +bundled-c-zlib -non-blocking-ffi -pkg-config,
any.zstd ==0.1.3.0,
zstd +standalone
index-state: hackage.haskell.org 2024-08-27T01:59:55Z
index-state: hackage.haskell.org 2024-11-15T05:14:10Z
41 changes: 1 addition & 40 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
packages: ./ghcup.cabal
import: cabal.project.common

optional-packages: ./vendored/*/*.cabal

Expand All @@ -9,44 +9,5 @@ else
package ghcup
flags: +tui +tar

constraints: http-io-streams -brotli,
any.aeson >= 2.0.1.0,
any.hsc2hs >=0.68.10,
bzlib-conduit >= 0.3.0.3,
bz2 >= 1.0.1.1,
bzlib >= 0.5.2.0,
directory >= 1.3.8.3,
filepath == 1.4.101.0 || == 1.4.300.1 || >= 1.5.2.0,
tar >= 0.6.2.0

constraints: text -simdutf

if os(mingw32)
constraints: zlib +bundled-c-zlib,
lzma +static,
text -simdutf,
vty-windows >=0.2.0.2

if impl(ghc >= 9.4)
constraints: language-c >= 0.9.3


source-repository-package
type: git
location: https://github.com/hasufell/uri-bytestring.git
tag: 4fb5ed14b500c192e6e7a97f6b2b1eb478806001

package libarchive
flags: -system-libarchive

package aeson-pretty
flags: +lib-only

package aeson
flags: +ordered-keymap

package hashable
flags: -arch-native

package *
test-show-details: direct
39 changes: 39 additions & 0 deletions cabal.project.common
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
packages: ./ghcup.cabal

constraints: http-io-streams -brotli,
any.aeson >= 2.0.1.0,
any.hsc2hs >=0.68.10,
bzlib-conduit >= 0.3.0.3,
bz2 >= 1.0.1.1,
bzlib >= 0.5.2.0,
directory >= 1.3.8.3,
filepath == 1.4.101.0 || == 1.4.300.1 || >= 1.5.2.0,
tar >= 0.6.2.0

constraints: text -simdutf

if os(mingw32)
constraints: zlib +bundled-c-zlib,
text -simdutf,
vty-windows >=0.2.0.2

if impl(ghc >= 9.4)
constraints: language-c >= 0.9.3


source-repository-package
type: git
location: https://github.com/hasufell/uri-bytestring.git
tag: 4fb5ed14b500c192e6e7a97f6b2b1eb478806001

package libarchive
flags: -system-libarchive

package aeson-pretty
flags: +lib-only

package aeson
flags: +ordered-keymap

package hashable
flags: -arch-native
20 changes: 16 additions & 4 deletions cabal.project.release
Original file line number Diff line number Diff line change
@@ -1,22 +1,34 @@
import: cabal.project
import: cabal.project.common

optimization: 2

-- The release project file always wants to build with -tar.
-- The tar flag is only there to circumvent complicated errors during
-- development, which sometimes happens due to libarchive.
package ghcup
flags: +tui -tar
flags: +tui

if os(linux)
constraints: xz -system-xz
if arch(x86_64) || arch(i386)
flags: -tar
package *
ghc-options: -split-sections -optl-static
elif arch(arm)
flags: +tar
else
flags: -tar
elif os(darwin)
flags: -tar
constraints: zlib +bundled-c-zlib,
lzma +static
xz -system-xz
elif os(mingw32)
flags: -tar
constraints: xz -system-xz
elif os(freebsd)
flags: -tar
constraints: zlib +bundled-c-zlib,
zip +disable-zstd
zip +disable-zstd,
xz -system-xz
package *
ghc-options: -split-sections
2 changes: 1 addition & 1 deletion docker/alpine32/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ RUN gpg --batch --keyserver keys.openpgp.org --recv-keys $GPG_KEY && \
sha256sum -c --ignore-missing SHA256SUMS && \
mv i386-linux-ghcup-$GHCUP_VERSION /usr/bin/ghcup && \
chmod +x /usr/bin/ghcup && \
rm -rf SHA256SUMS SHA256SUMS.sig
rm -rf SHA256SUMS SHA256SUMS.sig ~/.gnupg/public-keys.d/pubring.db.lock

ARG GHC=9.4.8
ARG CABAL_INSTALL=3.10.2.0
Expand Down
2 changes: 1 addition & 1 deletion docker/alpine64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ RUN gpg --batch --keyserver keys.openpgp.org --recv-keys $GPG_KEY && \
sha256sum -c --ignore-missing SHA256SUMS && \
mv x86_64-linux-ghcup-$GHCUP_VERSION /usr/bin/ghcup && \
chmod +x /usr/bin/ghcup && \
rm -rf SHA256SUMS SHA256SUMS.sig
rm -rf SHA256SUMS SHA256SUMS.sig ~/.gnupg/public-keys.d/pubring.db.lock

ARG GHC=9.4.8
ARG CABAL_INSTALL=3.10.2.0
Expand Down
2 changes: 1 addition & 1 deletion ghcup.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ library
, filepath >=1.4.101.0
, file-uri ^>=0.1.0.0
, variant ^>=1.0
, lzma-static ^>=5.2.5.3
, xz ^>=5.6.3
, megaparsec >=8.0.0 && <9.3
, mtl ^>=2.2 || ^>=2.3
, optics ^>=0.4
Expand Down
5 changes: 5 additions & 0 deletions stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ extra-deps:
- vty-crossplatform-0.4.0.0@sha256:50593f91ad16777d921138475a8d2784d538fd206addd30664c620278d6c8544,3172
- vty-unix-0.2.0.0@sha256:2af3d0bdae3c4b7b7e567ee374efe32c7439fabdf9096465ce011a6c6736e9ae,2932
- vty-windows-0.2.0.2
- xz-5.6.3
- xz-clib-5.6.3
- github: hasufell/uri-bytestring
commit: 4fb5ed14b500c192e6e7a97f6b2b1eb478806001

Expand All @@ -55,6 +57,9 @@ flags:
libarchive:
system-libarchive: false

xz:
system-xz: false

regex-posix:
_regex-posix-clib: true

Expand Down

0 comments on commit 0dfd6e6

Please sign in to comment.