summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.generate.ts
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2023-06-28 13:41:47 -0600
committerGitHub <noreply@github.com>2023-06-28 13:41:47 -0600
commit30f2cd3d1e0f7014156d05a0b08efd6b0e92f170 (patch)
tree2e5b7cb747af3c34cad61342c9330046b87ac9ce /.github/workflows/ci.generate.ts
parent558eb9f132f84bf2ed445fc97a26f7b92a652dbc (diff)
chore: reconfigure windows builder storage (#19601)
Use `C:` drive to build on Windows, as `D:` is too limited.
Diffstat (limited to '.github/workflows/ci.generate.ts')
-rwxr-xr-x.github/workflows/ci.generate.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/.github/workflows/ci.generate.ts b/.github/workflows/ci.generate.ts
index a98eacfa7..fb6947e3e 100755
--- a/.github/workflows/ci.generate.ts
+++ b/.github/workflows/ci.generate.ts
@@ -104,6 +104,20 @@ CFLAGS=-flto=thin --sysroot=/sysroot
__0`,
};
+// The Windows builder is a little strange -- there's lots of room on C: and not so much on D:
+// We'll check out to D:, but then all of our builds should happen on a C:-mapped drive
+const reconfigureWindowsStorage = {
+ name: "Reconfigure Windows Storage",
+ if: [
+ "startsWith(matrix.os, 'windows')",
+ ],
+ shell: "pwsh",
+ run: `
+New-Item -ItemType "directory" -Path "$env:TEMP/__target__"
+New-Item -ItemType Junction -Target "$env:TEMP/__target__" -Path "D:/a/deno/deno"
+`.trim(),
+};
+
const cloneRepoStep = [{
name: "Configure git",
run: [
@@ -368,6 +382,7 @@ const ci = {
RUST_BACKTRACE: "full",
},
steps: skipJobsIfPrAndMarkedSkip([
+ reconfigureWindowsStorage,
...cloneRepoStep,
submoduleStep("./test_util/std"),
submoduleStep("./third_party"),