Skip to content

Commit 01431b5

Browse files
committed
Updated distro to move idea in GitHub Action Linux when packing.
1 parent 7f9210c commit 01431b5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

library/jvm/src/main/scala/org/sireum/Init.scala

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1956,7 +1956,8 @@ import Init._
19561956
}
19571957

19581958
def pack(): Unit = {
1959-
if (Os.env("GITHUB_ACTIONS").nonEmpty) {
1959+
val isInGitHubAction = Os.env("GITHUB_ACTIONS").nonEmpty
1960+
if (isInGitHubAction) {
19601961
cache.removeAll()
19611962
}
19621963
val plat = ops.StringOps(platform(kind)).replaceAllChars('/', '-')
@@ -1972,7 +1973,11 @@ import Init._
19721973
(dir /+ rp).up.mkdirAll()
19731974
val orp = home /+ rp
19741975
if (orp.exists) {
1975-
orp.copyOverTo(dir /+ rp)
1976+
if (isInGitHubAction && kind == Os.Kind.Linux && orp.name == "idea") {
1977+
orp.moveOverTo(dir /+ rp)
1978+
} else {
1979+
orp.copyOverTo(dir /+ rp)
1980+
}
19761981
} else {
19771982
println()
19781983
println(s"Warning: Could not find $orp")

0 commit comments

Comments
 (0)