File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
library/jvm/src/main/scala/org/sireum Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments