Skip to content

Commit ddcd9e3

Browse files
authored
Don't count Apple Silicon macOS as "slow CI"
1 parent c2b1247 commit ddcd9e3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/runtests.jl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,16 @@ ENV["JULIA_DEPOT_PATH"] = new_depot
1414
Base.init_depot_path()
1515

1616
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+
1827
const is_julia_1_6 = VERSION.major == 1 && VERSION.minor == 6
1928
const is_julia_1_9 = VERSION.major == 1 && VERSION.minor == 9
2029
const is_julia_1_11 = VERSION.major == 1 && VERSION.minor == 11

0 commit comments

Comments
 (0)