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
22
33on :
44 push :
2020 - " 9.6.4"
2121 - " 9.8.2"
2222 - " 9.10.1"
23+ operating-system :
24+ - " ubuntu-latest"
25+ - " windows-latest"
2326
24- runs-on : ubuntu-latest
27+ runs-on : ${{ matrix.operating-system }}
2528
2629 steps :
2730 - uses : actions/checkout@v4
3538
3639 - name : Generate freeze file
3740 run : |
38- cabal update
3941 cabal configure --enable-tests --test-show-details=direct
4042 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
4443
4544 - name : Cache cabal work
4645 uses : actions/cache@v4
5049 ${{ steps.setup-haskell.outputs.cabal-store }}
5150 # We are using the hash of 'cabal.project.local' so that different levels
5251 # 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
5453
5554 - name : Build dependencies only
5655 run : cabal build all --only-dependencies
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments