diff options
| author | Matt Mastracci <matthew@mastracci.com> | 2023-06-28 13:41:47 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-28 13:41:47 -0600 |
| commit | 30f2cd3d1e0f7014156d05a0b08efd6b0e92f170 (patch) | |
| tree | 2e5b7cb747af3c34cad61342c9330046b87ac9ce /.github | |
| parent | 558eb9f132f84bf2ed445fc97a26f7b92a652dbc (diff) | |
chore: reconfigure windows builder storage (#19601)
Use `C:` drive to build on Windows, as `D:` is too limited.
Diffstat (limited to '.github')
| -rwxr-xr-x | .github/workflows/ci.generate.ts | 15 | ||||
| -rw-r--r-- | .github/workflows/ci.yml | 6 |
2 files changed, 21 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"), diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 46471dc13..ec5b578fd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -100,6 +100,12 @@ jobs: CARGO_TERM_COLOR: always RUST_BACKTRACE: full steps: + - name: Reconfigure Windows Storage + if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (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" - name: Configure git run: |- git config --global core.symlinks true |
