Skip to content

Commit e090ffe

Browse files
committed
Include Windows in CI testing
1 parent 547fc4f commit e090ffe

File tree

2 files changed

+6
-53
lines changed

2 files changed

+6
-53
lines changed

.github/workflows/cabal.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Continuous integration with cabal
1+
name: Continuous integration
22

33
on:
44
push:
@@ -20,8 +20,11 @@ jobs:
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
@@ -35,12 +38,8 @@ jobs:
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
@@ -50,7 +49,7 @@ jobs:
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

.github/workflows/stack.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)