Skip to content

Commit

Permalink
Merge branch 'stack-ci'
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Mar 16, 2024
2 parents 456200e + 3675c6b commit 63e714d
Show file tree
Hide file tree
Showing 26 changed files with 1,675 additions and 248 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/cabal.project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test cabal.project files

on:
push:
branches:
- master
tags:
- 'v*'
pull_request:
branches:
- master
schedule:
- cron: '0 2 * * *'

jobs:
build:
name: Build binary
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macOS-latest, macOS-11, windows-latest, ubuntu-latest]
ghc: ["8.10.7", "9.0.2", "9.2.8", "9.4.8"]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'true'

- name: Run build
run: |
env
ghcup --version
ghcup run -i --cabal latest -- cabal update
ghcup run -i --cabal latest --ghc ${GHC_VER} -- cabal build --project-file=cabal.ghc${GHC_VER//./}.project
env:
GHC_VER: ${{ matrix.ghc }}
shell: bash

35 changes: 35 additions & 0 deletions .github/workflows/stack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Test stack.yaml

on:
push:
branches:
- master
tags:
- 'v*'
pull_request:
branches:
- master
schedule:
- cron: '0 2 * * *'

jobs:
build:
name: Build binary
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macOS-latest, macOS-11, windows-latest, ubuntu-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'true'

- name: Run build
run: |
env
ghcup --version
ghcup run -i --stack latest -- stack build
shell: bash

60 changes: 60 additions & 0 deletions cabal.ghc8107.Unix.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
packages: ./ghcup.cabal

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

if impl(ghc < 9.0)
package ghcup
flags: +tui -tar
else
package ghcup
flags: +tui +tar

constraints: http-io-streams -brotli,
any.aeson >= 2.0.1.0,
any.hsc2hs ==0.68.8,
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

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/haskell/tar.git
tag: d94a988be4311b830149a9f8fc16739927e5fc1c

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 cabal-plan
flags: -exe

package aeson
flags: +ordered-keymap

package streamly
flags: +use-unliftio

package *
test-show-details: direct

allow-newer: cabal-install-parsers:tar, streamly:Win32

Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,16 @@ constraints: any.Cabal ==3.10.2.1,
any.data-clist ==0.2,
any.data-fix ==0.3.2,
any.deepseq ==1.4.4.0,
any.directory ==1.3.8.1,
any.directory ==1.3.8.3,
directory -os-string,
any.disk-free-space ==0.1.0.1,
any.distributive ==0.6.2.1,
distributive +semigroups +tagged,
any.dlist ==1.0,
dlist -werror,
any.exceptions ==0.10.4,
any.file-uri ==0.1.0.0,
any.filepath ==1.4.300.1,
any.filepath ==1.4.101.0,
filepath -cpphs,
any.foldable1-classes-compat ==0.1,
foldable1-classes-compat +tagged,
Expand All @@ -104,7 +105,7 @@ constraints: any.Cabal ==3.10.2.1,
any.haskus-utils-types ==1.5.1,
any.haskus-utils-variant ==3.3,
any.heaps ==0.4,
any.hsc2hs ==0.68.10,
any.hsc2hs ==0.68.8,
hsc2hs -in-ghc-tree,
any.hspec ==2.10.10,
any.hspec-core ==2.10.10,
Expand All @@ -126,8 +127,8 @@ constraints: any.Cabal ==3.10.2.1,
language-c -allwarnings +iecfpextension +usebytestrings,
any.libarchive ==3.0.4.2,
libarchive -cross -low-memory +no-exe -system-libarchive,
any.libyaml-streamly ==0.2.2,
libyaml-streamly -no-unicode -system-libyaml,
any.libyaml-streamly ==0.2.2.1,
libyaml-streamly -no-unicode +system-libyaml,
any.lockfree-queue ==0.2.4,
any.lukko ==0.1.1.3,
lukko +ofd-locking,
Expand Down Expand Up @@ -256,4 +257,4 @@ constraints: any.Cabal ==3.10.2.1,
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-03-10T10:13:56Z
index-state: hackage.haskell.org 2024-03-13T09:43:35Z
60 changes: 60 additions & 0 deletions cabal.ghc8107.Win32.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
packages: ./ghcup.cabal

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

if impl(ghc < 9.0)
package ghcup
flags: +tui -tar
else
package ghcup
flags: +tui +tar

constraints: http-io-streams -brotli,
any.aeson >= 2.0.1.0,
any.hsc2hs ==0.68.8,
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

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/haskell/tar.git
tag: d94a988be4311b830149a9f8fc16739927e5fc1c

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 cabal-plan
flags: -exe

package aeson
flags: +ordered-keymap

package streamly
flags: +use-unliftio

package *
test-show-details: direct

allow-newer: cabal-install-parsers:tar, streamly:Win32

Loading

0 comments on commit 63e714d

Please sign in to comment.