@@ -10,6 +10,7 @@ import System.Directory (copyFile)
10
10
import System.FilePath ((</>) )
11
11
import System.Info (os )
12
12
import System.IO.Temp (withSystemTempDirectory )
13
+ import System.Environment (lookupEnv )
13
14
14
15
import qualified System.Process as Process
15
16
import Test.Hspec.Core.Spec (SpecM )
@@ -26,11 +27,15 @@ main = hspec $ do
26
27
assertSuccess (bazel [" test" , " //..." ])
27
28
28
29
it " bazel test prof" $ do
30
+ ghcVersion <- lookupEnv " GHC_VERSION"
31
+
29
32
-- In .github/workflows/workflow.yaml we specify --test_tag_filters
30
33
-- -dont_test_on_darwin. However, specifiying --test_tag_filters
31
34
-- -requires_dynamic here alone would override that filter. So,
32
35
-- we have to duplicate that filter here.
33
- let tagFilter | os == " darwin" = " -dont_test_on_darwin,-requires_dynamic,-skip_profiling"
36
+ let tagFilter | os == " darwin" = " -dont_test_on_darwin,-requires_dynamic,-skip_profiling" ++ (
37
+ -- skip tests for specific GHC version, see https://github.com/tweag/rules_haskell/issues/2073
38
+ maybe " " (" ,-dont_build_on_macos_with_ghc_" ++ ) ghcVersion)
34
39
| otherwise = " -requires_dynamic,-skip_profiling"
35
40
assertSuccess (bazel [" test" , " -c" , " dbg" , " //..." , " --build_tag_filters" , tagFilter, " --test_tag_filters" , tagFilter])
36
41
0 commit comments