0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-01 12:16:11 -05:00

chore: reconfigure windows builder storage (#19601)

Use `C:` drive to build on Windows, as `D:` is too limited.
This commit is contained in:
Matt Mastracci 2023-06-28 13:41:47 -06:00 committed by GitHub
parent 558eb9f132
commit 30f2cd3d1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 36 additions and 15 deletions

View file

@ -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"),

View file

@ -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

View file

@ -1,4 +1,4 @@
Download http://localhost:4545/lockfile/basic/mod.ts
Check file:///[WILDCARD]/main.test.ts
running 1 test from ./main.test.ts
running 1 test from [WILDCARD]/main.test.ts
[WILDCARD]

View file

@ -2,9 +2,9 @@ Warning: "files" configuration is deprecated. Please use "include" and "exclude"
Check [WILDCARD]/test/collect/include/2_test.ts
Check [WILDCARD]/test/collect/include/test.ts
Check [WILDCARD]/test/collect/test.ts
running 0 tests from ./test/collect/include/2_test.ts
running 0 tests from ./test/collect/include/test.ts
running 0 tests from ./test/collect/test.ts
running 0 tests from [WILDCARD]/test/collect/include/2_test.ts
running 0 tests from [WILDCARD]/test/collect/include/test.ts
running 0 tests from [WILDCARD]/test/collect/test.ts
ok | 0 passed | 0 failed ([WILDCARD])

View file

@ -1,9 +1,9 @@
Check [WILDCARD]/test/collect/include/2_test.ts
Check [WILDCARD]/test/collect/include/test.ts
Check [WILDCARD]/test/collect/test.ts
running 0 tests from ./test/collect/include/2_test.ts
running 0 tests from ./test/collect/include/test.ts
running 0 tests from ./test/collect/test.ts
running 0 tests from [WILDCARD]/test/collect/include/2_test.ts
running 0 tests from [WILDCARD]/test/collect/include/test.ts
running 0 tests from [WILDCARD]/test/collect/test.ts
ok | 0 passed | 0 failed ([WILDCARD])

View file

@ -1,7 +1,7 @@
Check [WILDCARD]/test/collect/include/test.ts
Check [WILDCARD]/test/collect/test.ts
running 0 tests from ./test/collect/include/test.ts
running 0 tests from ./test/collect/test.ts
running 0 tests from [WILDCARD]/test/collect/include/test.ts
running 0 tests from [WILDCARD]/test/collect/test.ts
ok | 0 passed | 0 failed ([WILDCARD])

View file

@ -1,11 +1,11 @@
Check [WILDCARD]/test/filter/a_test.ts
Check [WILDCARD]/test/filter/b_test.ts
Check [WILDCARD]/test/filter/c_test.ts
running 1 test from ./test/filter/a_test.ts
running 1 test from [WILDCARD]/test/filter/a_test.ts
foo ... ok ([WILDCARD])
running 1 test from ./test/filter/b_test.ts
running 1 test from [WILDCARD]/test/filter/b_test.ts
foo ... ok ([WILDCARD])
running 1 test from ./test/filter/c_test.ts
running 1 test from [WILDCARD]/test/filter/c_test.ts
foo ... ok ([WILDCARD])
ok | 3 passed | 0 failed | 6 filtered out ([WILDCARD])

View file

@ -1,7 +1,7 @@
Check [WILDCARD]/test/shuffle/bar_test.ts
Check [WILDCARD]/test/shuffle/baz_test.ts
Check [WILDCARD]/test/shuffle/foo_test.ts
running 10 tests from ./test/shuffle/foo_test.ts
running 10 tests from [WILDCARD]/test/shuffle/foo_test.ts
test 3 ... ok ([WILDCARD])
test 2 ... ok ([WILDCARD])
test 7 ... ok ([WILDCARD])
@ -12,7 +12,7 @@ test 9 ... ok ([WILDCARD])
test 4 ... ok ([WILDCARD])
test 6 ... ok ([WILDCARD])
test 1 ... ok ([WILDCARD])
running 10 tests from ./test/shuffle/baz_test.ts
running 10 tests from [WILDCARD]/test/shuffle/baz_test.ts
test 3 ... ok ([WILDCARD])
test 2 ... ok ([WILDCARD])
test 7 ... ok ([WILDCARD])
@ -23,7 +23,7 @@ test 9 ... ok ([WILDCARD])
test 4 ... ok ([WILDCARD])
test 6 ... ok ([WILDCARD])
test 1 ... ok ([WILDCARD])
running 10 tests from ./test/shuffle/bar_test.ts
running 10 tests from [WILDCARD]/test/shuffle/bar_test.ts
test 3 ... ok ([WILDCARD])
test 2 ... ok ([WILDCARD])
test 7 ... ok ([WILDCARD])