Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/pr_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,19 @@ jobs:
with:
tinygo-version: ${{ matrix.tinygo-version }}
- name: Retrieve Go Paths
# Needed because we can't execute subshell with a third-party action.
id: go-cache-paths
shell: bash # IMPORTANT: without this Windows OS will not work.
run: |
echo "gobuild=$(go env GOCACHE)" >> $GITHUB_OUTPUT # speed up `go test` runs
echo "gomod=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT # speed up use of third-party modules
- name: Clear cache directory first before trying to restore from cache
# The issue doesn't occur on Windows, only nix systems.
if: runner.os != 'Windows'
run: sudo rm -rf $(go env GOMODCACHE) && sudo rm -rf $(go env GOCACHE)
shell: bash
# This workaround was recommended in the following issue report.
# https://github.com/actions/cache/issues/1104
- name: Go Build Cache
uses: actions/cache@v3
with:
Expand Down