Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows page file disk root fix #177

Merged
merged 1 commit into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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