|
60 | 60 | needs: |
61 | 61 | - pre_job |
62 | 62 | runs-on: ${{ matrix.os }} |
| 63 | + env: |
| 64 | + CABAL_ARGS: "--builddir b" |
63 | 65 | strategy: |
64 | 66 | # We don't want to fail fast. |
65 | 67 | # We used to fail fast, to avoid caches of failing PRs to overpopulate the CI |
@@ -105,71 +107,71 @@ jobs: |
105 | 107 | os: ${{ runner.os }} |
106 | 108 |
|
107 | 109 | - name: Build |
108 | | - run: cabal build all |
| 110 | + run: cabal build ${CABAL_ARGS} all |
109 | 111 |
|
110 | 112 | - name: Set test options |
111 | 113 | # See https://github.com/ocharles/tasty-rerun/issues/22 for why we need |
112 | 114 | # to include 'new' in the filters, since many of our test suites are in the |
113 | 115 | # same package. |
114 | 116 | run: | |
115 | | - cabal configure --test-options="--rerun-update --rerun-filter failures,exceptions,new" |
| 117 | + cabal configure ${CABAL_ARGS} --test-options="--rerun-update --rerun-filter failures,exceptions,new" |
116 | 118 |
|
117 | 119 | - if: matrix.test |
118 | 120 | name: Test hls-graph |
119 | | - run: cabal test hls-graph |
| 121 | + run: cabal test ${CABAL_ARGS} hls-graph |
120 | 122 |
|
121 | 123 | - if: needs.pre_job.outputs.should_skip_ghcide != 'true' && matrix.test |
122 | 124 | name: Test ghcide |
123 | 125 | # run the tests without parallelism to avoid running out of memory |
124 | | - run: cabal test ghcide-tests || cabal test ghcide-tests |
| 126 | + run: cabal test ${CABAL_ARGS} ghcide-tests || cabal test ${CABAL_ARGS} ghcide-tests |
125 | 127 |
|
126 | 128 | - if: matrix.test |
127 | 129 | name: Test hls-plugin-api |
128 | | - run: cabal test hls-plugin-api || cabal test hls-plugin-api |
| 130 | + run: cabal test ${CABAL_ARGS} hls-plugin-api || cabal test ${CABAL_ARGS} hls-plugin-api |
129 | 131 |
|
130 | 132 | - if: matrix.test |
131 | 133 | name: Test func-test suite |
132 | 134 | env: |
133 | 135 | HLS_TEST_EXE: hls |
134 | 136 | HLS_WRAPPER_TEST_EXE: hls-wrapper |
135 | | - run: cabal test func-test || cabal test func-test |
| 137 | + run: cabal test ${CABAL_ARGS} func-test || cabal test ${CABAL_ARGS} func-test |
136 | 138 |
|
137 | 139 | - if: matrix.test |
138 | 140 | name: Test wrapper-test suite |
139 | 141 | env: |
140 | 142 | HLS_TEST_EXE: hls |
141 | 143 | HLS_WRAPPER_TEST_EXE: hls-wrapper |
142 | | - run: cabal test wrapper-test |
| 144 | + run: cabal test ${CABAL_ARGS} wrapper-test |
143 | 145 |
|
144 | 146 | - if: matrix.test |
145 | 147 | name: Test hls-refactor-plugin |
146 | | - run: cabal test hls-refactor-plugin-tests || cabal test hls-refactor-plugin-tests |
| 148 | + run: cabal test ${CABAL_ARGS} hls-refactor-plugin-tests || cabal test ${CABAL_ARGS} hls-refactor-plugin-tests |
147 | 149 |
|
148 | 150 | # TODO enable when it supports 9.10 |
149 | 151 | - if: matrix.test && matrix.ghc != '9.10' && matrix.ghc != '9.12' && matrix.ghc != '9.14' && matrix.ghc != '9.10.2' |
150 | 152 | name: Test hls-floskell-plugin |
151 | | - run: cabal test hls-floskell-plugin-tests || cabal test hls-floskell-plugin-tests |
| 153 | + run: cabal test ${CABAL_ARGS} hls-floskell-plugin-tests || cabal test ${CABAL_ARGS} hls-floskell-plugin-tests |
152 | 154 |
|
153 | 155 | - if: matrix.test |
154 | 156 | name: Test hls-class-plugin |
155 | | - run: cabal test hls-class-plugin-tests || cabal test hls-class-plugin-tests |
| 157 | + run: cabal test ${CABAL_ARGS} hls-class-plugin-tests || cabal test ${CABAL_ARGS} hls-class-plugin-tests |
156 | 158 |
|
157 | 159 | - if: matrix.test |
158 | 160 | name: Test hls-pragmas-plugin |
159 | | - run: cabal test hls-pragmas-plugin-tests || cabal test hls-pragmas-plugin-tests |
| 161 | + run: cabal test ${CABAL_ARGS} hls-pragmas-plugin-tests || cabal test ${CABAL_ARGS} hls-pragmas-plugin-tests |
160 | 162 |
|
161 | 163 | - if: matrix.test |
162 | 164 | name: Test hls-eval-plugin |
163 | | - run: cabal test hls-eval-plugin-tests || cabal test hls-eval-plugin-tests |
| 165 | + run: cabal test ${CABAL_ARGS} hls-eval-plugin-tests || cabal test ${CABAL_ARGS} hls-eval-plugin-tests |
164 | 166 |
|
165 | 167 | # TODO enable when it supports 9.10 |
166 | 168 | - if: matrix.test && matrix.ghc != '9.10' && matrix.ghc != '9.12' && matrix.ghc != '9.14' && matrix.ghc != '9.10.2' |
167 | 169 | name: Test hls-splice-plugin |
168 | | - run: cabal test hls-splice-plugin-tests || cabal test hls-splice-plugin-tests |
| 170 | + run: cabal test ${CABAL_ARGS} hls-splice-plugin-tests || cabal test ${CABAL_ARGS} hls-splice-plugin-tests |
169 | 171 |
|
170 | 172 | - if: matrix.test && matrix.ghc != '9.12' && matrix.ghc != '9.14' |
171 | 173 | name: Test hls-stan-plugin |
172 | | - run: cabal test hls-stan-plugin-tests || cabal test hls-stan-plugin-tests |
| 174 | + run: cabal test ${CABAL_ARGS} hls-stan-plugin-tests || cabal test ${CABAL_ARGS} hls-stan-plugin-tests |
173 | 175 |
|
174 | 176 | - if: matrix.test && matrix.ghc != '9.14' |
175 | 177 | name: Test hls-stylish-haskell-plugin |
|
0 commit comments