File tree Expand file tree Collapse file tree 2 files changed +6
-53
lines changed Expand file tree Collapse file tree 2 files changed +6
-53
lines changed Original file line number Diff line number Diff line change 1
- name : Continuous integration with cabal
1
+ name : Continuous integration
2
2
3
3
on :
4
4
push :
20
20
- " 9.6.4"
21
21
- " 9.8.2"
22
22
- " 9.10.1"
23
+ operating-system :
24
+ - " ubuntu-latest"
25
+ - " windows-latest"
23
26
24
- runs-on : ubuntu-latest
27
+ runs-on : ${{ matrix.operating-system }}
25
28
26
29
steps :
27
30
- uses : actions/checkout@v4
35
38
36
39
- name : Generate freeze file
37
40
run : |
38
- cabal update
39
41
cabal configure --enable-tests --test-show-details=direct
40
42
cabal freeze --minimize-conflict-set
41
- # 'cabal freeze' will use the nearest index state which might not be exactly equal
42
- # to the index state specified in 'cabal.project'
43
- sed '/^index-state: /d' cabal.project.freeze > dependencies-versions
44
43
45
44
- name : Cache cabal work
46
45
uses : actions/cache@v4
50
49
${{ steps.setup-haskell.outputs.cabal-store }}
51
50
# We are using the hash of 'cabal.project.local' so that different levels
52
51
# of optimizations are cached separately
53
- key : ${{ runner.os }}-${{ hashFiles('dependencies-versions', ' cabal.project', 'cabal.project.local') }}-cabal-install
52
+ key : ${{ runner.os }}-${{ hashFiles('cabal.project', 'cabal.project.local') }}-cabal-install
54
53
55
54
- name : Build dependencies only
56
55
run : cabal build all --only-dependencies
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments