Skip to content

Commit

Permalink
Merge pull request #177 from mdedetrich/windows-pagefile-disk-root-fix
Browse files Browse the repository at this point in the history
Windows page file disk root fix
  • Loading branch information
mdedetrich committed Dec 20, 2023
2 parents bc75b11 + 102f461 commit 7e3f906
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
with:
minimum-size: 2GB
maximum-size: 8GB
disk-root: 'C:'

- name: Checkout current branch (full)
uses: actions/checkout@v4
Expand Down Expand Up @@ -108,6 +109,7 @@ jobs:
with:
minimum-size: 2GB
maximum-size: 8GB
disk-root: 'C:'

- name: Checkout current branch (full)
uses: actions/checkout@v4
Expand Down
4 changes: 3 additions & 1 deletion src/main/scala/sbtghactions/GenerativePlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,9 @@ ${indent(jobs.map(compileJob(_, sbt)).mkString("\n\n"), 1)}
params = Map(
"minimum-size" -> s"${pageFileFix.minSize}",
"maximum-size" -> s"${pageFileFix.maxSize}"
),
) ++ pageFileFix.diskRoot.map(diskRoot =>
Map("disk-root" -> s"$diskRoot")
).getOrElse(Map.empty),
cond = windowsGuard
)
).toList
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/sbtghactions/windows/PagefileFix.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package sbtghactions.windows

case class PagefileFix(minSize: String, maxSize: String)
case class PagefileFix(minSize: String, maxSize: String, diskRoot: Option[String] = Some("C:"))
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
with:
minimum-size: 2GB
maximum-size: 8GB
disk-root: 'C:'

- name: Checkout current branch (full)
uses: actions/checkout@v4
Expand Down Expand Up @@ -91,6 +92,7 @@ jobs:
with:
minimum-size: 2GB
maximum-size: 8GB
disk-root: 'C:'

- name: Checkout current branch (full)
uses: actions/checkout@v4
Expand Down

0 comments on commit 7e3f906

Please sign in to comment.