From 41eb3d54b4af1af9176eef69a2c904f8ab608020 Mon Sep 17 00:00:00 2001 From: Justin Kolberg Date: Wed, 31 Jul 2024 16:15:11 -0700 Subject: [PATCH] attempt to use dev-drive on windows Signed-off-by: Justin Kolberg --- .github/workflows/workflow-test-otelcol-config.yml | 2 +- .github/workflows/workflow-test.yml | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow-test-otelcol-config.yml b/.github/workflows/workflow-test-otelcol-config.yml index 00e34a8fc9..d75441bc52 100644 --- a/.github/workflows/workflow-test-otelcol-config.yml +++ b/.github/workflows/workflow-test-otelcol-config.yml @@ -43,7 +43,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} - cache: true + cache: false - name: Get GOCACHE and GOMODCACHE run: | diff --git a/.github/workflows/workflow-test.yml b/.github/workflows/workflow-test.yml index 52cd7036ba..0c28e41b68 100644 --- a/.github/workflows/workflow-test.yml +++ b/.github/workflows/workflow-test.yml @@ -43,9 +43,21 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} - cache: true + cache: false + + - uses: samypr100/setup-dev-drive@v3 + if: {{ runner.os == 'Windows' }} + with: + drive-size: 8GB + drive-format: ReFS + drive-type: Dynamic + workspace-copy: true + env-mapping: | + GOCACHE,{{ DEV_DRIVE }}/go/cache + GOMODCACHE,{{ DEV_DRIVE }}/go/mod - name: Get GOCACHE and GOMODCACHE + if: {{ runner.os != 'Windows' }} run: | echo "GOMODCACHE=$(go env GOMODCACHE)" >> "$GITHUB_ENV" echo "GOCACHE=$(go env GOCACHE)" >> "$GITHUB_ENV"