on master help sign in
Add CI for macOS.
638fa00Pranay Sashank
.github/workflows/haskell.yml+13−3
@@ -30,37 +30,47 @@ jobs:
30 CABAL_BUILD_OPTIONS: ${{ matrix.cabal_build_options }}
30 CABAL_BUILD_OPTIONS: ${{ matrix.cabal_build_options }}
31 CABAL_PROJECT: ${{ matrix.cabal_project }}
31 CABAL_PROJECT: ${{ matrix.cabal_project }}
32 DISABLE_DOCS: ${{ matrix.disable_docs }}
32 DISABLE_DOCS: ${{ matrix.disable_docs }}
33+ DISABLE_SDIST_BUILD: ${{ matrix.disable_sdist_build }}
33
34
34− runs-on: ubuntu-latest
35+ runs-on: ${{ matrix.runner }}
35 strategy:
36 strategy:
36 fail-fast: false
37 fail-fast: false
37 matrix:
38 matrix:
38− name: [8.8.3+inspection+fusion-plugin+Werror, 8.6.5+fusion-plugin, 8.6.5+streamk, 8.4.4+debug]
39+ name: [8.10.2+macOS, 8.8.3+inspection+fusion-plugin+Werror, 8.6.5+fusion-plugin, 8.6.5+streamk, 8.4.4+debug]
39 cabal_version: ["3.2"]
40 cabal_version: ["3.2"]
40 include:
41 include:
42+ - name: 8.10.2+macOS
43+ ghc_version: 8.10.2
44+ build: cabal-v2
45+ disable_sdist_build: "y"
46+ runner: macos-latest
41 - name: 8.8.3+inspection+fusion-plugin+Werror
47 - name: 8.8.3+inspection+fusion-plugin+Werror
42 ghc_version: 8.8.3
48 ghc_version: 8.8.3
43 build: cabal-v2
49 build: cabal-v2
44 cabal_project: cabal.project.ci
50 cabal_project: cabal.project.ci
51+ runner: ubuntu-latest
45 - name: 8.6.5+streamk
52 - name: 8.6.5+streamk
46 ghc_version: 8.6.5
53 ghc_version: 8.6.5
47 build: cabal-v2
54 build: cabal-v2
48 cabal_build_options: "--flag streamk --flag -opt"
55 cabal_build_options: "--flag streamk --flag -opt"
56+ runner: ubuntu-latest
49 - name: 8.6.5+fusion-plugin
57 - name: 8.6.5+fusion-plugin
50 ghc_version: 8.6.5
58 ghc_version: 8.6.5
51 build: cabal-v2
59 build: cabal-v2
52 cabal_build_options: "--flag fusion-plugin"
60 cabal_build_options: "--flag fusion-plugin"
53 # haddock generation does not work with 8.6.5+fusion-plugin
61 # haddock generation does not work with 8.6.5+fusion-plugin
54 disable_docs: "y"
62 disable_docs: "y"
63+ runner: ubuntu-latest
55 - name: 8.4.4+debug
64 - name: 8.4.4+debug
56 ghc_version: 8.4.4
65 ghc_version: 8.4.4
57 build: cabal-v2
66 build: cabal-v2
58 cabal_build_options: "--flag debug --flag -opt"
67 cabal_build_options: "--flag debug --flag -opt"
68+ runner: ubuntu-latest
59
69
60 steps:
70 steps:
61 - uses: actions/checkout@v2
71 - uses: actions/checkout@v2
62
72
63− - uses: actions/setup-haskell@v1
73+ - uses: haskell/actions/setup@v1
64 with:
74 with:
65 ghc-version: ${{ matrix.ghc_version }}
75 ghc-version: ${{ matrix.ghc_version }}
66 cabal-version: ${{ matrix.cabal_version }}
76 cabal-version: ${{ matrix.cabal_version }}