Skip to content

Commit

Permalink
Windows page file disk root fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mdedetrich committed Dec 20, 2023
1 parent bc75b11 commit c621f24
Show file tree
Hide file tree
Showing 3 changed files with 5 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
3 changes: 2 additions & 1 deletion src/main/scala/sbtghactions/GenerativePlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,8 @@ ${indent(jobs.map(compileJob(_, sbt)).mkString("\n\n"), 1)}
ref = UseRef.Public("al-cheb", "configure-pagefile-action", "v1.3"),
params = Map(
"minimum-size" -> s"${pageFileFix.minSize}",
"maximum-size" -> s"${pageFileFix.maxSize}"
"maximum-size" -> s"${pageFileFix.maxSize}",
"disk-root" -> s"${pageFileFix.diskRoot}"
),
cond = windowsGuard
)
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: String = "C:")

0 comments on commit c621f24

Please sign in to comment.