File tree Expand file tree Collapse file tree 3 files changed +15
-7
lines changed
modules/integration/src/test/scala/scala/cli/integration Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ jobs:
279
279
280
280
generate-macos-launcher :
281
281
timeout-minutes : 120
282
- runs-on : " macos-12 "
282
+ runs-on : " macOS-13 "
283
283
steps :
284
284
- uses : actions/checkout@v4
285
285
with :
@@ -306,7 +306,7 @@ jobs:
306
306
native-macos-tests-1 :
307
307
needs : generate-macos-launcher
308
308
timeout-minutes : 120
309
- runs-on : " macos-12 "
309
+ runs-on : " macOS-13 "
310
310
steps :
311
311
- uses : actions/checkout@v4
312
312
with :
@@ -339,7 +339,7 @@ jobs:
339
339
native-macos-tests-2 :
340
340
needs : generate-macos-launcher
341
341
timeout-minutes : 120
342
- runs-on : " macos-12 "
342
+ runs-on : " macOS-13 "
343
343
steps :
344
344
- uses : actions/checkout@v4
345
345
with :
@@ -372,7 +372,7 @@ jobs:
372
372
native-macos-tests-3 :
373
373
needs : generate-macos-launcher
374
374
timeout-minutes : 120
375
- runs-on : " macos-12 "
375
+ runs-on : " macOS-13 "
376
376
steps :
377
377
- uses : actions/checkout@v4
378
378
with :
Original file line number Diff line number Diff line change @@ -63,9 +63,7 @@ class NativePackagerTests extends ScalaCliSuite {
63
63
}
64
64
}
65
65
}
66
-
67
- test(" building dmg package" ) {
68
-
66
+ def testBuildingDmgPackage (): Unit =
69
67
testInputs.fromRoot { root =>
70
68
71
69
val appName = helloWorldFileName.stripSuffix(" .scala" ).toLowerCase()
@@ -107,6 +105,15 @@ class NativePackagerTests extends ScalaCliSuite {
107
105
)
108
106
}
109
107
}
108
+
109
+ // FIXME: building dmg package sometimes fails with:
110
+ // 'hdiutil: couldn't eject "disk2" - Resource busy'
111
+ if (TestUtil .isM1 || ! TestUtil .isCI)
112
+ test(" building dmg package" ) {
113
+ testBuildingDmgPackage()
114
+ }
115
+ else test(" building dmg package" .flaky) {
116
+ testBuildingDmgPackage()
110
117
}
111
118
}
112
119
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ object TestUtil {
18
18
val isNativeCli : Boolean = cliKind.startsWith(" native" )
19
19
val isJvmCli : Boolean = cliKind.startsWith(" jvm" )
20
20
val isCI : Boolean = System .getenv(" CI" ) != null
21
+ val isM1 : Boolean = sys.props.get(" os.arch" ).contains(" aarch64" )
21
22
val cliPath : String = sys.props(" test.scala-cli.path" )
22
23
val debugPortOpt : Option [String ] = sys.props.get(" test.scala-cli.debug.port" )
23
24
val detectCliPath = if (TestUtil .isNativeCli) TestUtil .cliPath else " scala-cli"
You can’t perform that action at this time.
0 commit comments