Skip to content

Commit

Permalink
Move co-log-core directory outside (#1)
Browse files Browse the repository at this point in the history
* Move co-log-core directory outside

* Add GitHub Actions CI and Dependabot

* Add .gitignore
  • Loading branch information
chshersh authored Oct 1, 2021
1 parent b935188 commit a4dd978
Show file tree
Hide file tree
Showing 14 changed files with 161 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @chshersh @vrom911
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "GA"
include: "scope"
labels:
- "CI"
- "dependencies"
88 changes: 88 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: CI

on:
pull_request:
types: [synchronize, opened, reopened]
push:
branches: [main]
schedule:
# additionally run once per week (At 00:00 on Sunday) to maintain cache
- cron: '0 0 * * 0'

jobs:
cabal:
name: ${{ matrix.os }} / ghc ${{ matrix.ghc }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
cabal: ["3.4"]
ghc:
- "8.2.2"
- "8.4.4"
- "8.6.5"
- "8.8.4"
- "8.10.7"
- "9.0.1"
exclude:
- os: macOS-latest
ghc: 9.0.1
- os: macOS-latest
ghc: 8.8.4
- os: macOS-latest
ghc: 8.6.5
- os: macOS-latest
ghc: 8.4.4
- os: macOS-latest
ghc: 8.2.2

- os: windows-latest
ghc: 9.0.1
- os: windows-latest
ghc: 8.8.4
- os: windows-latest
ghc: 8.6.5
- os: windows-latest
ghc: 8.4.4
- os: windows-latest
ghc: 8.2.2

steps:
- uses: actions/checkout@v2

- uses: haskell/actions/setup@v1
id: setup-haskell-cabal
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}

- 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@v2
name: Cache ~/.cabal/store
with:
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}

- name: Install dependencies
run: |
cabal build all --only-dependencies
- name: Build
run: |
cabal build all
- name: Test
run: |
cabal test all
- name: Documentation
run: |
cabal haddock
57 changes: 57 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
### Haskell
dist
dist-*
cabal-dev
*.o
*.hi
*.chi
*.chs.h
*.dyn_o
*.dyn_hi
*.prof
*.aux
*.hp
*.eventlog
.virtualenv
.hsenv
.hpc
.cabal-sandbox/
cabal.sandbox.config
cabal.config
cabal.project.local
.ghc.environment.*
.HTF/
# Stack
.stack-work/
stack.yaml.lock

### IDE/support
# Vim
[._]*.s[a-v][a-z]
[._]*.sw[a-p]
[._]s[a-v][a-z]
[._]sw[a-p]
*~
tags

# IntellijIDEA
.idea/
.ideaHaskellLib/
*.iml

# Atom
.haskell-ghc-mod.json

# VS
.vscode/

# Emacs
*#
.dir-locals.el
TAGS

# other
.DS_Store

# co-log
*.log
File renamed without changes.
6 changes: 3 additions & 3 deletions co-log-core/co-log-core.cabal → co-log-core.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ description:
* [co-log-polysemy](http://hackage.haskell.org/package/co-log-polysemy): extensible
effects implementation based on @polysemy@.

homepage: https://github.com/kowainik/co-log
bug-reports: https://github.com/kowainik/co-log/issues
homepage: https://github.com/co-log/co-log-core
bug-reports: https://github.com/co-log/co-log-core/issues
license: MPL-2.0
license-file: LICENSE
author: Dmitrii Kovanikov
Expand All @@ -42,7 +42,7 @@ tested-with: GHC == 8.2.2

source-repository head
type: git
location: https://github.com/kowainik/co-log.git
location: https://github.com/co-log/co-log-core.git

common common-options
build-depends: base >= 4.10.1.0 && < 4.16
Expand Down
1 change: 0 additions & 1 deletion co-log-core/LICENSE

This file was deleted.

1 change: 0 additions & 1 deletion co-log-core/README.md

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a4dd978

Please sign in to comment.