|
7 | 7 | strategy:
|
8 | 8 | fail-fast: true
|
9 | 9 | matrix:
|
10 |
| - ghc: ['8.10.3', "8.10.2", "8.10.1", "8.8.4", "8.8.3", "8.8.2", "8.6.5", "8.6.4"] |
11 |
| - os: [ubuntu-latest, windows-latest] |
12 |
| - exclude: |
13 |
| - - os: windows-latest |
14 |
| - ghc: "8.10.2" # broken due to https://gitlab.haskell.org/ghc/ghc/-/issues/18550 |
| 10 | + ghc: ["8.10.3", "8.10.2", "8.10.1", "8.8.4", "8.8.3", "8.8.2", "8.6.5", "8.6.4"] |
| 11 | + os: [ubuntu-latest, macOS-latest] |
| 12 | + include: |
| 13 | + # one ghc-lib build |
| 14 | + # should be renabled: #784 |
| 15 | + # - os: ubuntu-latest |
| 16 | + # ghc: '8.10.1' |
| 17 | + # ghc-lib: true |
| 18 | + # only test supported ghc major versions |
| 19 | + - os: macOS-latest |
| 20 | + ghc: '8.10.3' |
| 21 | + test: true |
| 22 | + - os: ubuntu-latest |
| 23 | + ghc: '8.10.3' |
| 24 | + test: true |
15 | 25 | - os: windows-latest
|
16 |
| - ghc: "8.8.4" # also fails due to segfault :( |
| 26 | + ghc: '8.10.3' |
| 27 | + test: true |
| 28 | + - os: macOS-latest |
| 29 | + ghc: '8.8.4' |
| 30 | + test: true |
| 31 | + - os: ubuntu-latest |
| 32 | + ghc: '8.8.4' |
| 33 | + test: true |
| 34 | + - os: macOS-latest |
| 35 | + ghc: '8.6.5' |
| 36 | + test: true |
| 37 | + - os: ubuntu-latest |
| 38 | + ghc: '8.6.5' |
| 39 | + test: true |
17 | 40 | - os: windows-latest
|
18 |
| - ghc: "8.8.3" # fails due to segfault |
| 41 | + ghc: '8.6.5' |
| 42 | + test: true |
| 43 | + # only build rest of supported ghc versions for windows |
19 | 44 | - os: windows-latest
|
20 |
| - ghc: "8.8.2" # fails due to error with Cabal |
| 45 | + ghc: '8.10.2.2' |
21 | 46 | - os: windows-latest
|
22 |
| - ghc: "8.6.4" # times out after 300m |
23 |
| - include: |
| 47 | + ghc: '8.10.1' |
24 | 48 | - os: windows-latest
|
25 |
| - ghc: "8.10.2.2" # only available for windows and choco |
| 49 | + ghc: '8.6.4' |
26 | 50 |
|
27 | 51 | steps:
|
28 | 52 | # Cancel queued workflows from earlier commits in this branch
|
@@ -71,11 +95,13 @@ jobs:
|
71 | 95 | run: cabal build || cabal build || cabal build
|
72 | 96 |
|
73 | 97 | - name: Test ghcide
|
| 98 | + if: ${{ !matrix.ghc-lib && matrix.test }} |
74 | 99 | shell: bash
|
75 | 100 | # run the tests without parallelism to avoid running out of memory
|
76 | 101 | run: cabal test ghcide --test-options="-j1 --rerun-update" || cabal test ghcide --test-options="-j1 --rerun" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test ghcide --test-options="-j1 --rerun"
|
77 | 102 |
|
78 | 103 | - name: Test func-test suite
|
| 104 | + if: ${{ !matrix.ghc-lib && matrix.test }} |
79 | 105 | shell: bash
|
80 | 106 | env:
|
81 | 107 | HLS_TEST_EXE: hls
|
|
86 | 112 | run: cabal test func-test --test-options="-j1 --rerun-update" || cabal test func-test --test-options="-j1 --rerun --rerun-update" || cabal test func-test --test-options="-j1 --rerun" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test func-test --test-options="-j1 --rerun"
|
87 | 113 |
|
88 | 114 | - name: Test wrapper-test suite
|
| 115 | + if: ${{ !matrix.ghc-lib && matrix.test }} |
89 | 116 | shell: bash
|
90 | 117 | env:
|
91 | 118 | HLS_TEST_EXE: hls
|
|
0 commit comments