Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
545 changes: 438 additions & 107 deletions .github/workflows/haskell.yml

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion .packcheck.ignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ appveyor.yml
cabal.project
cabal.project.user
cabal.project.Werror
default.nix
stack.yaml
flake.lock
flake.nix
72 changes: 34 additions & 38 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# packcheck-0.4.2
# packcheck-0.7.1
# You can use any of the options supported by packcheck as environment
# variables here. See https://github.com/harendra-kumar/packcheck for all
# variables here. See https://github.com/composewell/packcheck for all
# options and their explanation.

branches:
only:
- master
Expand All @@ -14,45 +15,37 @@ environment:
# ------------------------------------------------------------------------
# Common options
# ------------------------------------------------------------------------
GHC_OPTIONS: "-Werror"
CABAL_REINIT_CONFIG: "y"
LC_ALL: "C.UTF-8"

# ------------------------------------------------------------------------
# How to build
# ------------------------------------------------------------------------
#
GHCUP_VERSION: "0.1.50.2"
GHCVER: "9.12.4"
#CABALVER: "3.10.3.0"

# ------------------------------------------------------------------------
# What to build
# ------------------------------------------------------------------------
# DISABLE_TEST: "y"
# DISABLE_BENCH: "y"
# DISABLE_DOCS: "y"
# DISABLE_DIST_CHECKS: "y"
# On Windows, DISABLE_SDIST_BUILD is useful for (1) avoiding
# path length restriction, (2) avoid installing autoreconf
# for configure builds.
DISABLE_SDIST_BUILD: "y"
DISABLE_DIST_CHECKS: "y"
ENABLE_INSTALL: "y"

# ------------------------------------------------------------------------
# stack options
# ------------------------------------------------------------------------
# Note requiring a specific version of stack using STACKVER may fail due to
# github API limit while checking and upgrading/downgrading to the specific
# version.
#STACKVER: "1.6.5"
STACK_UPGRADE: "y"
RESOLVER: "lts-22.33"
STACK_ROOT: "c:\\sr"
STACK_YAML: "stack.yaml"
# Note: these require the "diff" utility.
# DISABLE_SDIST_GIT_CHECK: "y"
DISABLE_SDIST_PROJECT_CHECK: "y"

# ------------------------------------------------------------------------
# cabal options
# ------------------------------------------------------------------------
#CABAL_BUILD_OPTIONS: "--flag interop"
CABAL_CHECK_RELAX: "y"
CABAL_NO_SANDBOX: "y"
CABAL_HACKAGE_MIRROR: "hackage.haskell.org:http://hackage.fpcomplete.com"

# ------------------------------------------------------------------------
# Where to find the required tools
# ------------------------------------------------------------------------
PATH: "%PATH%;%APPDATA%\\local\\bin"
LOCAL_BIN: "%APPDATA%\\local\\bin"
#CABAL_PROJECT: "cabal.project"

# ------------------------------------------------------------------------
# Location of packcheck.sh (the shell script invoked to perform CI tests ).
Expand All @@ -65,31 +58,34 @@ environment:
# If you have not committed packcheck.sh in your repo at PACKCHECK_LOCAL_PATH
# then it is automatically pulled from this URL.
PACKCHECK_GITHUB_URL: "https://raw.githubusercontent.com/composewell/packcheck"
PACKCHECK_GITHUB_COMMIT: "v0.6.0"
PACKCHECK_GITHUB_COMMIT: "dd9ba87d2a42c7cd1d96e3946636c07e732587b4"

# Override the temp directory to avoid sed escaping issues
# See https://github.com/haskell/cabal/issues/5386
TMP: "c:\\tmp"

# Bump the -> version to clear the cache
# packcheck uses "%APPDATA%\\local" to install tools like hlint etc.
# cabal may use "%APPDATA%\\cabal" or "c:\\cabal"
# ghcup may use "%APPDATA%\\ghcup" or "c:\\ghcup"
cache:
- "%STACK_ROOT%"
- "%LOCAL_BIN%"
- "%APPDATA%\\local\\bin -> v1"
- "%APPDATA%\\cabal"
- "%APPDATA%\\ghc"
# - "%LOCALAPPDATA%\\Programs\\stack"
- "%LOCALAPPDATA%\\cabal"
- "C:\\ghcup"
- "C:\\cabal"

# Folder where the repository is cloned. Kept as short as possible to avoid
# long path issues on Windows.
clone_folder: "c:\\pkg"
build: off

before_test:
- if not exist %PACKCHECK_LOCAL_PATH% curl -sSkL -o%PACKCHECK_LOCAL_PATH% %PACKCHECK_GITHUB_URL%/%PACKCHECK_GITHUB_COMMIT%/packcheck.sh
- if not exist %LOCAL_BIN% mkdir %LOCAL_BIN%
- where stack.exe || curl -sSkL -ostack.zip http://www.stackage.org/stack/windows-x86_64 && 7z x stack.zip stack.exe && move stack.exe %LOCAL_BIN%
- if defined STACKVER (stack upgrade --binary-only --binary-version %STACKVER%) else (stack upgrade --binary-only || ver > nul)
- stack --version
- if not exist %PACKCHECK_LOCAL_PATH% curl --fail -sSL -o%PACKCHECK_LOCAL_PATH% %PACKCHECK_GITHUB_URL%/%PACKCHECK_GITHUB_COMMIT%/packcheck.sh

test_script:
- stack setup > nul
- for /f "usebackq tokens=*" %%i in (`where 7z.exe`) do set PATH7Z=%%i\..
- for /f "usebackq tokens=*" %%i in (`where git.exe`) do set PATHGIT=%%i\..
- chcp 65001 && stack exec bash -- -c "chmod +x %PACKCHECK_LOCAL_PATH%; %PACKCHECK_LOCAL_PATH% stack PATH=/usr/bin:\"%PATH7Z%\":\"%PATHGIT%\""
- for /f "usebackq tokens=*" %%i in (`where curl.exe`) do set PATHCURL=%%i\..
- chcp 65001
- bash %PACKCHECK_LOCAL_PATH% cabal PATH="/usr/bin:%PATH7Z%:%PATHGIT%:%PATHCURL%"
3 changes: 0 additions & 3 deletions cabal.project

This file was deleted.

112 changes: 0 additions & 112 deletions default.nix

This file was deleted.

88 changes: 88 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
description = "streamly-statistics";

inputs = {
basepkgs.url = "git+ssh://git@github.com/composewell/streamly-packages?rev=187bde6bd362eced707ed96198ddc193af66ff42";
nixpkgs.follows = "basepkgs/nixpkgs";
nixpkgs-darwin.follows = "basepkgs/nixpkgs-darwin";
};

outputs = { self, nixpkgs, nixpkgs-darwin, basepkgs }:
basepkgs.nixpack.mkOutputs {
inherit nixpkgs nixpkgs-darwin basepkgs;
name = "streamly-statistics";
sources = basepkgs.nixpack.lib.localSource "streamly-statistics" ./.;
packages = basepkgs.nixpack.lib.devPackage "streamly-statistics";
#sources = import ./sources.nix;
#packages = import ./packages.nix;
};
}
Loading
Loading