mirror of
https://github.com/tfausak/witch.git
synced 2024-11-22 14:58:13 +03:00
Switch to GitHub Actions
This commit is contained in:
parent
606a544dd9
commit
793880269c
@ -1,4 +0,0 @@
|
||||
FROM haskell:8.10.2
|
||||
ARG LOGIN=haskell
|
||||
RUN useradd --create-home --shell "$( which bash )" "$LOGIN"
|
||||
USER $LOGIN
|
@ -1,13 +0,0 @@
|
||||
{
|
||||
"build": {
|
||||
"dockerfile": "Dockerfile"
|
||||
},
|
||||
"containerUser": "haskell",
|
||||
"extensions": [
|
||||
"taylorfausak.purple-yolk"
|
||||
],
|
||||
"postCreateCommand": "cabal update",
|
||||
"settings": {
|
||||
"purple-yolk.ghci.command": "cabal repl"
|
||||
}
|
||||
}
|
18
.github/workflows/ci.yaml
vendored
18
.github/workflows/ci.yaml
vendored
@ -2,10 +2,10 @@ name: CI
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
release:
|
||||
types:
|
||||
- created
|
||||
@ -13,17 +13,17 @@ jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ macos-10.15, ubuntu-18.04, windows-2019 ]
|
||||
ghc: [ 8.10.2 ]
|
||||
cabal: [ 3.2.0.0 ]
|
||||
include:
|
||||
- { os: ubuntu-18.04, ghc: 8.8.4, cabal: 3.2.0.0 }
|
||||
- { os: ubuntu-18.04, ghc: 8.6.5, cabal: 3.2.0.0 }
|
||||
- { os: ubuntu-18.04, ghc: 9.0.1, cabal: 3.4.0.0 }
|
||||
- { os: ubuntu-18.04, ghc: 8.10.3, cabal: 3.2.0.0 }
|
||||
- { os: macos-10.15, ghc: 8.10.3, cabal: 3.2.0.0 }
|
||||
- { os: windows-2019, ghc: 8.10.3, cabal: 3.2.0.0 }
|
||||
- { os: ubuntu-18.04, ghc: 8.8.4, cabal: 3.0.0.0 }
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- id: setup-haskell
|
||||
uses: actions/setup-haskell@v1
|
||||
uses: haskell/actions/setup@v1
|
||||
with:
|
||||
ghc-version: ${{ matrix.ghc }}
|
||||
cabal-version: ${{ matrix.cabal }}
|
||||
@ -42,5 +42,5 @@ jobs:
|
||||
path: dist-newstyle/sdist/witch-*.tar.gz
|
||||
name: witch-${{ github.sha }}.tar.gz
|
||||
- run: cabal check
|
||||
- if: github.event_name == 'release' && matrix.os == 'ubuntu-18.04' && matrix.ghc == '8.10.2'
|
||||
- if: github.event_name == 'release' && matrix.os == 'ubuntu-18.04' && matrix.ghc == '9.0.1'
|
||||
run: cabal upload --publish --username '${{ secrets.HACKAGE_USERNAME }}' --password '${{ secrets.HACKAGE_PASSWORD }}' dist-newstyle/sdist/witch-*.tar.gz
|
||||
|
@ -1,4 +1,4 @@
|
||||
Copyright 2020 Taylor Fausak
|
||||
Copyright 2021 Taylor Fausak
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Witch
|
||||
|
||||
[![CI](https://github.com/tfausak/witch/workflows/CI/badge.svg)](https://github.com/tfausak/witch/actions)
|
||||
[![CI](https://github.com/tfausak/witch/workflows/CI/badge.svg)](https://github.com/tfausak/witch/actions/new)
|
||||
[![Hackage](https://img.shields.io/hackage/v/witch)](https://hackage.haskell.org/package/witch)
|
||||
[![Stackage](https://www.stackage.org/package/witch/badge/nightly?label=stackage)](https://www.stackage.org/package/witch)
|
||||
|
||||
|
@ -1,3 +0,0 @@
|
||||
packages: .
|
||||
package witch
|
||||
tests: true
|
@ -1,3 +1,4 @@
|
||||
{-# options_ghc -Wno-orphans #-}
|
||||
{-# language TypeApplications #-}
|
||||
|
||||
import qualified Data.ByteString as B
|
||||
|
@ -1 +1 @@
|
||||
resolver: nightly-2020-11-11
|
||||
resolver: lts-17.0
|
||||
|
10
witch.cabal
10
witch.cabal
@ -17,10 +17,10 @@ source-repository head
|
||||
|
||||
library
|
||||
build-depends:
|
||||
base >= 4.12.0 && < 4.15
|
||||
, bytestring >= 0.10.8 && < 0.12
|
||||
, containers >= 0.6.0 && < 0.7
|
||||
, text >= 1.2.3 && < 1.3
|
||||
base >= 4.13.0 && < 4.16
|
||||
, bytestring >= 0.10.10 && < 0.11
|
||||
, containers >= 0.6.2 && < 0.7
|
||||
, text >= 1.2.4 && < 1.3
|
||||
default-language: Haskell2010
|
||||
exposed-modules: Witch
|
||||
ghc-options:
|
||||
@ -41,7 +41,7 @@ test-suite test
|
||||
base
|
||||
, bytestring
|
||||
, containers
|
||||
, hspec >= 2.7.1 && < 2.8
|
||||
, hspec >= 2.7.6 && < 2.8
|
||||
, QuickCheck >= 2.13.2 && < 2.15
|
||||
, text
|
||||
, witch
|
||||
|
Loading…
Reference in New Issue
Block a user