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
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ preinstall: &preinstall
#apt-get install -y ghc-8.10.4
#apt-get install -y cabal-install-3.4

# If you have a configure.ac script and have sdist build enabled
apt-get install -y autoconf

# required for outbound https for stack and for stack setup
apt-get install -y netbase xz-utils make
apt-get install -y zlib1g-dev
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/packcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,13 @@ jobs:
runner: macos-latest
command: cabal
ghc_version: 9.12.4
# autoreconf required by SDIST build when a configure script
# is present, is not available by default on Windows, so
# disable it.
# WARNING! cannot use # comments inside pack_options.
pack_options: >-
CABAL_PROJECT=cabal.project
DISABLE_SDIST_BUILD=y

- name: ci
runner: ubuntu-latest
Expand Down Expand Up @@ -212,8 +216,10 @@ jobs:
runner: windows-latest
command: cabal
ghc_version: 9.14.1
# On Windows, DISABLE_SDIST_BUILD is useful for (1) avoiding
# path length restriction, (2) avoid installing autoreconf
# for configure builds.
# WARNING! cannot use # comments inside pack_options.
# DISABLE_SDIST_BUILD for shorter paths on Windows
pack_options: >-
DISABLE_SDIST_BUILD="y"
CABAL_PROJECT=cabal.project
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ Easiest way to try it out is to download the `packcheck.sh` script and run
it from within your Haskell package repo locally.

```bash
packcheck.sh cabal
curl -sLO https://raw.githubusercontent.com/composewell/packcheck/master/packcheck.sh
bash packcheck.sh cabal
```

### Running in GitHub Actions
Expand Down
5 changes: 4 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ environment:
# DISABLE_BENCH: "y"
# DISABLE_DOCS: "y"
# DISABLE_DIST_CHECKS: "y"
# DISABLE_SDIST_BUILD: "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"
# Note: these require the "diff" utility.
# DISABLE_SDIST_GIT_CHECK: "y"
DISABLE_SDIST_PROJECT_CHECK: "y"
Expand Down
15 changes: 15 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Input file for autoconf to generate the configure script.

# See https://www.gnu.org/software/autoconf/manual/autoconf.html for help on
# the macros used in this file.

AC_INIT([packcheck], [0.7.1], [streamly@composewell.com], [streamly], [https://streamly.composewell.com])

# To suppress "WARNING: unrecognized options: --with-compiler"
AC_ARG_WITH([compiler], [GHC])

# -----------------------------------------------------------------------------
# Output
# -----------------------------------------------------------------------------
AC_CONFIG_HEADERS([src/config.h])
AC_OUTPUT
9 changes: 3 additions & 6 deletions packcheck.cabal
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cabal-version: 2.2
name: packcheck
version: 0.7.1
synopsis: Universal build and CI testing for Haskell packages
Expand Down Expand Up @@ -27,32 +28,28 @@ description:

homepage: https://github.com/composewell/packcheck
bug-reports: https://github.com/composewell/packcheck/issues
license: BSD3
license: BSD-3-Clause
license-file: LICENSE
tested-with:
GHC==9.14.1
, GHC==9.12.4
, GHC==9.10.3
, GHC==9.8.4
, GHC==9.6.3
, GHC==9.4.8
, GHC==9.2.8
, GHC==9.0.1
, GHC==8.10.7
author: Harendra Kumar
maintainer: harendra.kumar@gmail.com
copyright: 2017 Harendra Kumar
category: Testing, CI
stability: Experimental
build-type: Simple
cabal-version: 1.18

extra-doc-files:
Changelog.md
MAINTAINING.md
README.md

extra-source-files:
configure.ac
packcheck.sh
packcheck-remote.sh

Expand Down
Loading