|
7 | 7 | strategy:
|
8 | 8 | fail-fast: false
|
9 | 9 | matrix:
|
10 |
| - ghc: ['8.10.2', '8.10.1', '8.8.4', '8.8.3', '8.8.2', '8.6.5', '8.6.4'] |
| 10 | + ghc: ["8.10.2", "8.10.1", "8.8.4", "8.8.3", "8.8.2", "8.6.5", "8.6.4"] |
11 | 11 | os: [ubuntu-latest, macOS-latest, windows-latest]
|
12 | 12 | exclude:
|
13 | 13 | - os: windows-latest
|
14 |
| - ghc: '8.10.2' # broken due to https://gitlab.haskell.org/ghc/ghc/-/issues/18550 |
| 14 | + ghc: "8.10.2" # broken due to https://gitlab.haskell.org/ghc/ghc/-/issues/18550 |
15 | 15 | - os: windows-latest
|
16 |
| - ghc: '8.8.4' # also fails due to segfault :( |
| 16 | + ghc: "8.8.4" # also fails due to segfault :( |
17 | 17 | - os: windows-latest
|
18 |
| - ghc: '8.8.3' # fails due to segfault |
| 18 | + ghc: "8.8.3" # fails due to segfault |
19 | 19 | - os: windows-latest
|
20 |
| - ghc: '8.8.2' # fails due to error with Cabal |
| 20 | + ghc: "8.8.2" # fails due to error with Cabal |
21 | 21 | include:
|
22 | 22 | - os: windows-latest
|
23 |
| - ghc: '8.10.2.2' # only available for windows and choco |
| 23 | + ghc: "8.10.2.2" # only available for windows and choco |
24 | 24 |
|
25 | 25 | steps:
|
26 |
| - - uses: actions/checkout@v2 |
27 |
| - with: |
28 |
| - submodules: true |
29 |
| - - uses: actions/setup-haskell@v1 |
30 |
| - with: |
31 |
| - ghc-version: ${{ matrix.ghc }} |
32 |
| - cabal-version: '3.2' |
33 |
| - enable-stack: true |
| 26 | + - uses: actions/checkout@v2 |
| 27 | + with: |
| 28 | + submodules: true |
| 29 | + - uses: actions/setup-haskell@v1 |
| 30 | + with: |
| 31 | + ghc-version: ${{ matrix.ghc }} |
| 32 | + cabal-version: "3.2" |
| 33 | + enable-stack: true |
34 | 34 |
|
35 |
| - - name: Cache Cabal |
36 |
| - uses: actions/cache@v2 |
37 |
| - env: |
38 |
| - cache-name: cache-cabal |
39 |
| - with: |
40 |
| - path: ~/.cabal/ |
41 |
| - key: ${{ runner.os }}-${{ matrix.ghc }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }} |
42 |
| - restore-keys: | |
43 |
| - ${{ runner.os }}-${{ matrix.ghc }}-build-${{ env.cache-name }}- |
44 |
| - ${{ runner.os }}-${{ matrix.ghc }}-build- |
45 |
| - ${{ runner.os }}-${{ matrix.ghc }} |
| 35 | + - name: Cache Cabal |
| 36 | + uses: actions/cache@v2 |
| 37 | + env: |
| 38 | + cache-name: cache-cabal |
| 39 | + with: |
| 40 | + path: ~/.cabal/ |
| 41 | + key: ${{ runner.os }}-${{ matrix.ghc }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }} |
| 42 | + restore-keys: | |
| 43 | + ${{ runner.os }}-${{ matrix.ghc }}-build-${{ env.cache-name }}- |
| 44 | + ${{ runner.os }}-${{ matrix.ghc }}-build- |
| 45 | + ${{ runner.os }}-${{ matrix.ghc }} |
46 | 46 |
|
47 |
| - - run: cabal update |
| 47 | + - run: cabal update |
48 | 48 |
|
49 |
| - # Need this to work around filepath length limits in Windows |
50 |
| - - name: Shorten binary names |
51 |
| - shell: bash |
52 |
| - run: | |
53 |
| - sed -i.bak -e 's/haskell-language-server/hls/g' \ |
54 |
| - -e 's/haskell_language_server/hls/g' \ |
55 |
| - haskell-language-server.cabal |
56 |
| - sed -i.bak -e 's/Paths_haskell_language_server/Paths_hls/g' \ |
57 |
| - src/**/*.hs exe/*.hs |
| 49 | + # Need this to work around filepath length limits in Windows |
| 50 | + - name: Shorten binary names |
| 51 | + shell: bash |
| 52 | + run: | |
| 53 | + sed -i.bak -e 's/haskell-language-server/hls/g' \ |
| 54 | + -e 's/haskell_language_server/hls/g' \ |
| 55 | + haskell-language-server.cabal |
| 56 | + sed -i.bak -e 's/Paths_haskell_language_server/Paths_hls/g' \ |
| 57 | + src/**/*.hs exe/*.hs |
58 | 58 |
|
59 |
| - - name: Build |
60 |
| - shell: bash |
61 |
| - # Retry it three times to workaround compiler segfaults in windows |
62 |
| - run: cabal build || cabal build || cabal build |
| 59 | + - name: Build |
| 60 | + shell: bash |
| 61 | + # Retry it three times to workaround compiler segfaults in windows |
| 62 | + run: cabal build || cabal build || cabal build |
63 | 63 |
|
64 |
| - - name: Test func-test suite |
65 |
| - shell: bash |
66 |
| - env: |
67 |
| - HLS_TEST_EXE: hls |
68 |
| - HLS_WRAPPER_TEST_EXE: hls-wrapper |
69 |
| - # run the tests without parallelism, otherwise tasty will attempt to run |
70 |
| - # all functional test cases simultaneously which causes way too many hls |
71 |
| - # instances to be spun up for the poor github actions runner to handle |
72 |
| - run: cabal test func-test --test-options="-j1 --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" |
| 64 | + - name: Test func-test suite |
| 65 | + shell: bash |
| 66 | + env: |
| 67 | + HLS_TEST_EXE: hls |
| 68 | + HLS_WRAPPER_TEST_EXE: hls-wrapper |
| 69 | + # run the tests without parallelism, otherwise tasty will attempt to run |
| 70 | + # all functional test cases simultaneously which causes way too many hls |
| 71 | + # instances to be spun up for the poor github actions runner to handle |
| 72 | + 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" |
73 | 73 |
|
74 |
| - - name: Test wrapper-test suite |
75 |
| - shell: bash |
76 |
| - env: |
77 |
| - HLS_TEST_EXE: hls |
78 |
| - HLS_WRAPPER_TEST_EXE: hls-wrapper |
79 |
| - # run the tests without parallelism, otherwise tasty will attempt to run |
80 |
| - # all functional test cases simultaneously which causes way too many hls |
81 |
| - # instances to be spun up for the poor github actions runner to handle |
82 |
| - run: cabal test wrapper-test --test-options="-j1" || cabal test wrapper-test --test-options="-j1" || cabal test wrapper-test --test-options="-j1" |
| 74 | + - name: Test wrapper-test suite |
| 75 | + shell: bash |
| 76 | + env: |
| 77 | + HLS_TEST_EXE: hls |
| 78 | + HLS_WRAPPER_TEST_EXE: hls-wrapper |
| 79 | + # run the tests without parallelism, otherwise tasty will attempt to run |
| 80 | + # all functional test cases simultaneously which causes way too many hls |
| 81 | + # instances to be spun up for the poor github actions runner to handle |
| 82 | + run: cabal test wrapper-test --test-options="-j1" || cabal test wrapper-test --test-options="-j1" || cabal test wrapper-test --test-options="-j1" |
0 commit comments