Skip to content

Commit a4dd978

Browse files
authored
Move co-log-core directory outside (#1)
* Move co-log-core directory outside * Add GitHub Actions CI and Dependabot * Add .gitignore
1 parent b935188 commit a4dd978

File tree

14 files changed

+161
-5
lines changed

14 files changed

+161
-5
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @chshersh @vrom911

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
commit-message:
8+
prefix: "GA"
9+
include: "scope"
10+
labels:
11+
- "CI"
12+
- "dependencies"

.github/workflows/ci.yml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
types: [synchronize, opened, reopened]
6+
push:
7+
branches: [main]
8+
schedule:
9+
# additionally run once per week (At 00:00 on Sunday) to maintain cache
10+
- cron: '0 0 * * 0'
11+
12+
jobs:
13+
cabal:
14+
name: ${{ matrix.os }} / ghc ${{ matrix.ghc }}
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
matrix:
18+
os: [ubuntu-latest, macOS-latest, windows-latest]
19+
cabal: ["3.4"]
20+
ghc:
21+
- "8.2.2"
22+
- "8.4.4"
23+
- "8.6.5"
24+
- "8.8.4"
25+
- "8.10.7"
26+
- "9.0.1"
27+
exclude:
28+
- os: macOS-latest
29+
ghc: 9.0.1
30+
- os: macOS-latest
31+
ghc: 8.8.4
32+
- os: macOS-latest
33+
ghc: 8.6.5
34+
- os: macOS-latest
35+
ghc: 8.4.4
36+
- os: macOS-latest
37+
ghc: 8.2.2
38+
39+
- os: windows-latest
40+
ghc: 9.0.1
41+
- os: windows-latest
42+
ghc: 8.8.4
43+
- os: windows-latest
44+
ghc: 8.6.5
45+
- os: windows-latest
46+
ghc: 8.4.4
47+
- os: windows-latest
48+
ghc: 8.2.2
49+
50+
steps:
51+
- uses: actions/checkout@v2
52+
53+
- uses: haskell/actions/setup@v1
54+
id: setup-haskell-cabal
55+
name: Setup Haskell
56+
with:
57+
ghc-version: ${{ matrix.ghc }}
58+
cabal-version: ${{ matrix.cabal }}
59+
60+
- name: Configure
61+
run: |
62+
cabal configure --enable-tests --enable-benchmarks --enable-documentation --test-show-details=direct --write-ghc-environment-files=always
63+
64+
- name: Freeze
65+
run: |
66+
cabal freeze
67+
68+
- uses: actions/cache@v2
69+
name: Cache ~/.cabal/store
70+
with:
71+
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
72+
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
73+
74+
- name: Install dependencies
75+
run: |
76+
cabal build all --only-dependencies
77+
78+
- name: Build
79+
run: |
80+
cabal build all
81+
82+
- name: Test
83+
run: |
84+
cabal test all
85+
86+
- name: Documentation
87+
run: |
88+
cabal haddock

.gitignore

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
### Haskell
2+
dist
3+
dist-*
4+
cabal-dev
5+
*.o
6+
*.hi
7+
*.chi
8+
*.chs.h
9+
*.dyn_o
10+
*.dyn_hi
11+
*.prof
12+
*.aux
13+
*.hp
14+
*.eventlog
15+
.virtualenv
16+
.hsenv
17+
.hpc
18+
.cabal-sandbox/
19+
cabal.sandbox.config
20+
cabal.config
21+
cabal.project.local
22+
.ghc.environment.*
23+
.HTF/
24+
# Stack
25+
.stack-work/
26+
stack.yaml.lock
27+
28+
### IDE/support
29+
# Vim
30+
[._]*.s[a-v][a-z]
31+
[._]*.sw[a-p]
32+
[._]s[a-v][a-z]
33+
[._]sw[a-p]
34+
*~
35+
tags
36+
37+
# IntellijIDEA
38+
.idea/
39+
.ideaHaskellLib/
40+
*.iml
41+
42+
# Atom
43+
.haskell-ghc-mod.json
44+
45+
# VS
46+
.vscode/
47+
48+
# Emacs
49+
*#
50+
.dir-locals.el
51+
TAGS
52+
53+
# other
54+
.DS_Store
55+
56+
# co-log
57+
*.log
File renamed without changes.

co-log-core/co-log-core.cabal renamed to co-log-core.cabal

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ description:
2121
* [co-log-polysemy](http://hackage.haskell.org/package/co-log-polysemy): extensible
2222
effects implementation based on @polysemy@.
2323

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

4343
source-repository head
4444
type: git
45-
location: https://github.com/kowainik/co-log.git
45+
location: https://github.com/co-log/co-log-core.git
4646

4747
common common-options
4848
build-depends: base >= 4.10.1.0 && < 4.16

co-log-core/LICENSE

Lines changed: 0 additions & 1 deletion
This file was deleted.

co-log-core/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)