Skip to content

Commit 5b863af

Browse files
committed
ramdisk
1 parent 6db82ca commit 5b863af

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/ci.yaml

+10-5
Original file line numberDiff line numberDiff line change
@@ -335,18 +335,23 @@ jobs:
335335
with:
336336
fetch-depth: 1
337337

338+
# Sets up the ImDisk toolkit for Windows and creates a RAM disk on drive R:.
339+
- name: Setup ImDisk
340+
if: runner.os == 'Windows'
341+
uses: ./.github/actions/setup-imdisk
342+
338343
- name: Download Go Build Cache
339344
id: download-go-build-cache
340345
uses: ./.github/actions/test-cache/download
341346
if: runner.os == 'Windows'
342347
with:
343348
key-prefix: test-go-build-11-${{ runner.os }}-${{ runner.arch }}
344-
cache-path: "~/.cache/go-cache"
349+
cache-path: "/r/.cache/go-cache"
345350

346351
- name: Setup Go
347352
uses: ./.github/actions/setup-go
348353
with:
349-
build-cache-path: ~/.cache/go-cache
354+
build-cache-path: /r/.cache/go-cache
350355
cache: false
351356

352357
- name: Normalize File and Directory Timestamps
@@ -385,8 +390,8 @@ jobs:
385390
touch ~/.bash_profile && echo "export BASH_SILENCE_DEPRECATION_WARNING=1" >> ~/.bash_profile
386391
fi
387392
export TS_DEBUG_DISCO=true
388-
export GOCACHE=~/.cache/go-cache/build
389-
export GOMODCACHE=~/.cache/go-cache/mod
393+
export GOCACHE=/r/.cache/go-cache/build
394+
export GOMODCACHE=/r/.cache/go-cache/mod
390395
echo "PATH: $PATH"
391396
gotestsum --junitfile="gotests.xml" --jsonfile="gotests.json" \
392397
--packages="./..." -- $PARALLEL_FLAG -short -failfast
@@ -401,7 +406,7 @@ jobs:
401406
uses: ./.github/actions/test-cache/upload
402407
with:
403408
cache-key: ${{ steps.download-go-build-cache.outputs.cache-key }}-${{ github.run_id }}-${{ github.run_attempt }}
404-
cache-path: "~/.cache/go-cache"
409+
cache-path: "/r/.cache/go-cache"
405410
override-condition: "true"
406411

407412
# We don't run the full test-suite for Windows & MacOS, so we just run the CLI tests on every PR.

0 commit comments

Comments
 (0)