@@ -14,7 +14,16 @@ ENV["JULIA_DEPOT_PATH"] = new_depot
14
14
Base. init_depot_path ()
15
15
16
16
const is_ci = tryparse (Bool, get (ENV , " CI" , " " )) === true
17
- const is_slow_ci = is_ci && Sys. ARCH == :aarch64
17
+ const is_apple_silicon_macos = Sys. ARCH == :aarch64 && Sys. isapple ()
18
+
19
+ # In order to be "slow CI", we must meet all of the following:
20
+ # 1. We are running on CI.
21
+ # 2. We are running on aarch64 (arm64).
22
+ # 3. We are NOT running on Apple Silicon macOS.
23
+ # (Because for GitHub Actions, the GitHub-hosted Apple Silicon
24
+ # macOS runners seem to be quite fast.)
25
+ const is_slow_ci = is_ci && Sys. ARCH == :aarch64 && ! is_apple_silicon_macos
26
+
18
27
const is_julia_1_6 = VERSION . major == 1 && VERSION . minor == 6
19
28
const is_julia_1_9 = VERSION . major == 1 && VERSION . minor == 9
20
29
const is_julia_1_11 = VERSION . major == 1 && VERSION . minor == 11
85
94
# Test creating an app
86
95
app_source_dir = joinpath (@__DIR__ , " .." , " examples/MyApp/" )
87
96
app_compiled_dir = joinpath (tmp, " MyAppCompiled" )
88
- @testset for incremental in (is_slow_ci ? (false ,) : (true , false ))
97
+ if is_slow_ci
98
+ incrementals_list = (true , false )
99
+ else
100
+ incrementals_list = (true , false )
101
+ end
102
+ @testset for incremental in incrementals_list
89
103
if incremental == false
90
104
if is_julia_1_11 || is_julia_1_12
91
105
# On Julia 1.11 and 1.12, `incremental=false` is currently broken.
96
110
@test_skip false
97
111
continue
98
112
end
99
- filter_stdlibs = (is_slow_ci ? (true , ) : (true , false ))
113
+ if is_slow_ci
114
+ filter_stdlibs = (true ,)
115
+ else
116
+ filter_stdlibs = (true , false )
117
+ end
100
118
else
101
119
filter_stdlibs = (false ,)
102
120
end
0 commit comments