From 13092721c24995e8dcb197930de0de1cc34fe8ed Mon Sep 17 00:00:00 2001
From: Herbert Valerio Riedel <hvr@gnu.org>
Date: Sat, 2 Nov 2019 14:25:06 +0100
Subject: [PATCH] try windows

---
 .github/workflows/haskell.yml | 22 ++++++++++++++++++++--
 1 file changed, 20 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/haskell.yml b/.github/workflows/haskell.yml
index 34dd90bbce..cb2ca1208b 100644
--- a/.github/workflows/haskell.yml
+++ b/.github/workflows/haskell.yml
@@ -10,7 +10,11 @@ jobs:
   build:
     strategy:
       matrix:
-        os: ['ubuntu-18.04','macOS-10.14','windows-latest']
+        os:
+          #- 'ubuntu-18.04'
+          #- 'macOS-10.14'
+          - 'windows-latest'
+
         ghc: ['8.6.5','8.0.2']
 
     runs-on: ${{ matrix.os }}
@@ -27,7 +31,7 @@ jobs:
         key: ${{ runner.os }}-ghc-${{ matrix.ghc }}-store-3.0
 
     - name: "Build (Linux)"
-      if: matrix.os == 'ubuntu-18.04'
+      if: runner.os == 'Linux-18.04'
       env:
         GHCVER: ${{ matrix.ghc }}
       run: |
@@ -37,4 +41,18 @@ jobs:
         ghc --version
         cabal update -v3
         cabal v2-build -w ghc-${GHCVER} all
+
+    - name: "Build (Windows)"
+      if: runner.os == 'Windows'
+      env:
+        GHCVER: ${{ matrix.ghc }}
+      # NB: On Windows the default shell is pwsh
+      run: |
+        choco install -y cabal --version 3.0.0.0
+        choco install -y ghc --version ${env:GHCVER}
+        cabal --version
+        ghc --version
+        cabal update -v3
+        cabal v2-build -w ghc-${env:GHCVER} all
+
 ...
-- 
GitLab