Skip to content

Commit

Permalink
attempt to use dev-drive on windows
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Kolberg <[email protected]>
  • Loading branch information
amdprophet committed Jul 31, 2024
1 parent 1e9b2b2 commit 41eb3d5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workflow-test-otelcol-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/workflow-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 41eb3d5

Please sign in to comment.