Skip to content

Commit 510c81f

Browse files
committed
Add CI via Github Actions.
1 parent 056dd43 commit 510c81f

File tree

2 files changed

+40
-5
lines changed

2 files changed

+40
-5
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: concat
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
types:
8+
- opened
9+
- synchronize
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
ghc:
16+
- "8.0.2"
17+
- "8.2.2"
18+
- "8.4.1"
19+
- "8.6.1"
20+
- "8.8.1"
21+
- "8.10.1"
22+
env:
23+
CONFIG: "--enable-tests --enable-benchmarks"
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: haskell/actions/setup@v1
27+
id: setup-haskell-cabal
28+
with:
29+
ghc-version: ${{ matrix.ghc }}
30+
cabal-version: "3.6.0.0"
31+
- run: cabal v2-update
32+
- run: cabal v2-freeze $CONFIG
33+
- uses: actions/cache@v2
34+
with:
35+
path: |
36+
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
37+
dist-newstyle
38+
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
39+
- run: cabal new-build all
40+
- run: cabal new-test gold-tests

cabal.project

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ source-repository-package
1616
tag: master
1717
subdir: verilog
1818

19-
source-repository-package
20-
type: git
21-
location: https://github.com/expipiplus1/vector-sized.git
22-
tag: master
23-
2419
packages:
2520
./inline/concat-inline.cabal
2621
./plugin/concat-plugin.cabal

0 commit comments

Comments
 (0)