Seperate Stack and Cabal scripts

This commit is contained in:
sdiehl
2020-01-04 17:54:59 +00:00
parent 612726f87e
commit 0ea2c5146a
3 changed files with 14 additions and 12 deletions
@@ -1,4 +1,4 @@
name: Haskell CI
name: Cabal CI
on:
push:
@@ -8,7 +8,7 @@ on:
jobs:
build:
name: ghc ${{ matrix.ghc }}
name: cabal ${{ matrix.ghc }}
runs-on: ubuntu-16.04
strategy:
matrix:
+10 -9
View File
@@ -7,18 +7,19 @@ on:
jobs:
build:
name: stack ${{ matrix.resolver }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
# use this to specify what resolvers and ghc to use
plan:
- { build: stack, resolver: "--resolver lts-9" } # ghc-8.0.2
- { build: stack, resolver: "--resolver lts-10" } # ghc-8.2.2
- { build: stack, resolver: "--resolver lts-11" } # ghc-8.2.2
- { build: stack, resolver: "--resolver lts-12" } # ghc-8.4.4
- { build: stack, resolver: "--resolver lts-13" } # redundant because lts-14 checks ghc-8.6 already
- { build: stack, resolver: "--resolver lts-14" } # ghc-8.6.5
- { build: stack, resolver: "--resolver nightly" }
- { build: stack, resolver: "lts-9" } # ghc-8.0.2
- { build: stack, resolver: "lts-10" } # ghc-8.2.2
- { build: stack, resolver: "lts-11" } # ghc-8.2.2
- { build: stack, resolver: "lts-12" } # ghc-8.4.4
- { build: stack, resolver: "lts-13" } # redundant because lts-14 checks ghc-8.6 already
- { build: stack, resolver: "lts-14" } # ghc-8.6.5
- { build: stack, resolver: "nightly" }
# - { build: stack, resolver: "" }
# use this to include any dependencies from OS package managers
include: []
@@ -56,7 +57,7 @@ jobs:
set -ex
case "$BUILD" in
stack)
stack --no-terminal --install-ghc $ARGS test --bench --only-dependencies
stack --no-terminal --install-ghc --resolver $ARGS test --bench --only-dependencies
;;
cabal)
cabal --version
@@ -75,7 +76,7 @@ jobs:
set -ex
case "$BUILD" in
stack)
stack --no-terminal $ARGS test --bench --no-run-benchmarks --haddock --no-haddock-deps
stack --no-terminal --resolver $ARGS test --bench --no-run-benchmarks --haddock --no-haddock-deps
;;
cabal)
PACKAGES=$(stack --install-ghc query locals | grep '^ *path' | sed 's@^ *path:@@')
+2 -1
View File
@@ -2,7 +2,8 @@ Protolude
=========
[![Build Status](https://travis-ci.org/protolude/protolude.svg?branch=master)](https://travis-ci.org/sdiehl/protolude)
[![Build Status](https://github.com/protolude/protolude/workflows/Haskell%20CI/badge.svg)](https://github.com/protolude/protolude/actions)
[![Build Status](https://github.com/protolude/protolude/workflows/Cabal%20CI/badge.svg)](https://github.com/protolude/protolude/actions)
[![Build Status](https://github.com/protolude/protolude/workflows/Stack%20CI/badge.svg)](https://github.com/protolude/protolude/actions)
[![Hackage](https://img.shields.io/hackage/v/protolude.svg)](https://hackage.haskell.org/package/protolude)
A sensible starting Prelude for building custom Preludes.