Skip to content

Commit 7e3f906

Browse files
authored
Merge pull request #177 from mdedetrich/windows-pagefile-disk-root-fix
Windows page file disk root fix
2 parents bc75b11 + 102f461 commit 7e3f906

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
with:
3939
minimum-size: 2GB
4040
maximum-size: 8GB
41+
disk-root: 'C:'
4142

4243
- name: Checkout current branch (full)
4344
uses: actions/checkout@v4
@@ -108,6 +109,7 @@ jobs:
108109
with:
109110
minimum-size: 2GB
110111
maximum-size: 8GB
112+
disk-root: 'C:'
111113

112114
- name: Checkout current branch (full)
113115
uses: actions/checkout@v4

src/main/scala/sbtghactions/GenerativePlugin.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,9 @@ ${indent(jobs.map(compileJob(_, sbt)).mkString("\n\n"), 1)}
690690
params = Map(
691691
"minimum-size" -> s"${pageFileFix.minSize}",
692692
"maximum-size" -> s"${pageFileFix.maxSize}"
693-
),
693+
) ++ pageFileFix.diskRoot.map(diskRoot =>
694+
Map("disk-root" -> s"$diskRoot")
695+
).getOrElse(Map.empty),
694696
cond = windowsGuard
695697
)
696698
).toList
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package sbtghactions.windows
22

3-
case class PagefileFix(minSize: String, maxSize: String)
3+
case class PagefileFix(minSize: String, maxSize: String, diskRoot: Option[String] = Some("C:"))

src/sbt-test/sbtghactions/githubworkflowoses-clean-publish/.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
with:
3838
minimum-size: 2GB
3939
maximum-size: 8GB
40+
disk-root: 'C:'
4041

4142
- name: Checkout current branch (full)
4243
uses: actions/checkout@v4
@@ -91,6 +92,7 @@ jobs:
9192
with:
9293
minimum-size: 2GB
9394
maximum-size: 8GB
95+
disk-root: 'C:'
9496

9597
- name: Checkout current branch (full)
9698
uses: actions/checkout@v4

0 commit comments

Comments
 (0)