Skip to content

Commit 2124871

Browse files
committed
Try to avoid building the fourmolu tests on macos
1 parent d6974d6 commit 2124871

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ jobs:
173173
name: Test hls-ormolu-plugin
174174
run: cabal test hls-ormolu-plugin-tests || cabal test hls-ormolu-plugin-tests
175175

176-
- if: matrix.test
176+
# Disabled on macos until we find a workaround for https://gitlab.haskell.org/ghc/ghc/-/issues/24648
177+
- if: matrix.test && matrix.os != 'macOS-latest'
177178
name: Test hls-fourmolu-plugin
178179
run: cabal test hls-fourmolu-plugin-tests || cabal test hls-fourmolu-plugin-tests
179180

haskell-language-server.cabal

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1481,7 +1481,9 @@ library hls-fourmolu-plugin
14811481

14821482
test-suite hls-fourmolu-plugin-tests
14831483
import: defaults, pedantic, test-defaults, warnings
1484-
if !flag(fourmolu)
1484+
-- Disabled on macos until we find a workaround
1485+
-- for https://gitlab.haskell.org/ghc/ghc/-/issues/24648
1486+
if !flag(fourmolu) || os(darwin)
14851487
buildable: False
14861488
type: exitcode-stdio-1.0
14871489
hs-source-dirs: plugins/hls-fourmolu-plugin/test

0 commit comments

Comments
 (0)