-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
1,675 additions
and
248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
Oops, something went wrong.