Skip to content

Commit

Permalink
Merge branch 'main' into fixes-chshersh#58-detect-non-interactive-ter…
Browse files Browse the repository at this point in the history
…minals-automatically
  • Loading branch information
chshersh committed Oct 11, 2022
2 parents 1ce7dac + 2efce7d commit 8d28b45
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 11 deletions.
60 changes: 59 additions & 1 deletion .github/workflows/ci.yml
Expand Up @@ -16,11 +16,12 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
cabal: ["3.6"]
cabal: ["3.8"]
ghc:
- "8.10.7"
- "9.0.2"
- "9.2.4"
- "9.4.2"

exclude:
- os: macOS-latest
Expand Down Expand Up @@ -120,3 +121,60 @@ jobs:
curl -L https://github.com/ndmitchell/hlint/releases/download/v${HLINT_VERSION}/hlint-${HLINT_VERSION}-x86_64-linux.tar.gz --output hlint.tar.gz
tar -xvf hlint.tar.gz
./hlint-${HLINT_VERSION}/hlint src/ test/
stan:
name: stan
runs-on: ubuntu-latest
env:
CABAL_VERSION: "3.6"
# `stan` Github Release supports this version as of now. If we want to run stan on multiple
# GHC versions, we need to build `stan` from source.
GHC_VERSION: "8.10.1"
STAN_VERSION: "0.0.1.0"

steps:
- uses: actions/checkout@v3

- uses: haskell/actions/setup@v2.0
id: setup-haskell-cabal
name: Setup Haskell
with:
ghc-version: ${{ env.GHC_VERSION }}
cabal-version: ${{ env.CABAL_VERSION }}

- name: Configure
run: |
cabal configure --enable-tests --enable-benchmarks --enable-documentation --test-show-details=direct --write-ghc-environment-files=always
- name: Freeze
run: |
cabal freeze
- uses: actions/cache@v3
name: Cache ~/.cabal/store
with:
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
key: stan-${{ runner.os }}-${{ env.GHC_VERSION }}-${{ hashFiles('cabal.project.freeze') }}

- name: Install dependencies
run: |
cabal build all --only-dependencies
- name: Build
run: |
cabal build all
- name: Download `stan`
run: |
curl --silent -L https://github.com/kowainik/stan/releases/latest/download/stan-$STAN_VERSION-Linux-ghc-$GHC_VERSION --output stan
chmod +x stan
- name: Run `stan`
run: |
./stan report
- name: Upload HTML stan report artifact
uses: actions/upload-artifact@v3
with:
name: stan-report
path: stan.html
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -53,3 +53,6 @@ TAGS

# other
.DS_Store

# stan
stan.html
5 changes: 0 additions & 5 deletions cabal.project
@@ -1,6 +1 @@
packages: .

source-repository-package
type: git
location: https://github.com/uhbif19/colourista.git
tag: 8148a0446bf61814f79d6a0c497007fde72b31eb
9 changes: 6 additions & 3 deletions iris.cabal
Expand Up @@ -16,7 +16,8 @@ category: CLI,Framework
build-type: Simple
extra-doc-files: README.md
CHANGELOG.md
tested-with: GHC == 9.2.4
tested-with: GHC == 9.4.2
GHC == 9.2.4
GHC == 9.0.2
GHC == 8.10.7

Expand All @@ -25,7 +26,7 @@ source-repository head
location: https://github.com/chshersh/iris.git

common common-options
build-depends: base >= 4.14 && < 4.17
build-depends: base >= 4.14 && < 4.18

ghc-options: -Wall
-Wcompat
Expand All @@ -50,6 +51,8 @@ common common-options
if impl(ghc >= 9.2)
ghc-options: -Wredundant-bang-patterns
-Woperator-whitespace
if impl(ghc >= 9.4)
ghc-options: -Wredundant-strictness-flags

default-language: Haskell2010
default-extensions: ConstraintKinds
Expand Down Expand Up @@ -109,7 +112,7 @@ executable iris-example

build-depends:
, iris
, colourista ^>= 0.1
, colourista >= 0.1.0.2
, mtl

ghc-options: -threaded
Expand Down
3 changes: 1 addition & 2 deletions stack.yaml
@@ -1,5 +1,4 @@
resolver: nightly-2022-08-04

extra-deps:
- github: uhbif19/colourista
commit: 8148a0446bf61814f79d6a0c497007fde72b31eb
- colourista-0.1.0.2

0 comments on commit 8d28b45

Please sign in to comment.