File tree 8 files changed +59
-1084
lines changed
8 files changed +59
-1084
lines changed Original file line number Diff line number Diff line change
1
+ name : CI tests
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ linux :
7
+
8
+ runs-on : ubuntu-latest
9
+ strategy :
10
+ fail-fast : true
11
+ matrix :
12
+ versions :
13
+ - ghc : ' 8.10'
14
+ cabal : ' 3.2'
15
+ - ghc : ' 9.0'
16
+ cabal : ' 3.4'
17
+ - ghc : ' 9.2'
18
+ cabal : ' 3.6'
19
+ - ghc : ' 9.4'
20
+ cabal : ' latest'
21
+ - ghc : ' 9.6'
22
+ cabal : ' latest'
23
+ steps :
24
+ - uses : actions/checkout@v1
25
+ - name : Install cabal/ghc
26
+ run : |
27
+ ghcup install ghc --set ${{ matrix.versions.ghc }}
28
+ ghcup install cabal --set ${{ matrix.versions.cabal }}
29
+
30
+ - name : Cache cabal global package db
31
+ id : cabal-global
32
+ uses : actions/cache@v3
33
+ with :
34
+ path : |
35
+ ~/.cabal
36
+ key : ${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-cabal-global-${{ secrets.CACHE_VERSION }}
37
+
38
+ - name : Update
39
+ run : |
40
+ cabal v2-update
41
+ - name : Build
42
+ run : |
43
+ cabal v2-build --enable-tests --disable-optimization -fexecutable
44
+ - name : Test
45
+ run : |
46
+ cabal v2-test --disable-optimization
47
+
Original file line number Diff line number Diff line change 1
1
dist
2
2
cabal-dev
3
+ cabal.project.local
3
4
* .o
4
5
* .hi
5
6
* .chi
Original file line number Diff line number Diff line change @@ -16,12 +16,6 @@ install:
16
16
clean :
17
17
cabal clean
18
18
19
- bench :
20
- cabal configure --enable-benchmarks && \
21
- cabal install --only-dependencies && \
22
- cabal build && \
23
- cabal bench
24
-
25
19
update-c-sources : $(C_SOURCES )
26
20
27
21
cbits/config.h : $(CMARK_DIR ) /build/src/config.h
@@ -39,4 +33,4 @@ cbits/%: $(CMARK_DIR)/src/%
39
33
cbits/% : $(CMARK_DIR ) /extensions/%
40
34
cp $< $@
41
35
42
- .PHONY : build prep install test clean bench update-c-sources
36
+ .PHONY : build prep install test clean update-c-sources
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments