Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d03017 commit 78d877fCopy full SHA for 78d877f
README.md
@@ -59,8 +59,17 @@ jobs:
59
60
#### How do I set up caching between builds?
61
62
-We haven't been able to find a simple way to accomplish this. It would be useful
63
-to persist Go's module download and build caches.
+Use [actions/cache](https://github.com/actions/cache). For example, to cache
+downloaded modules:
64
+
65
+```
66
+- uses: actions/cache@v1
67
+ with:
68
+ path: ~/go/pkg/mod
69
+ key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
70
+ restore-keys: |
71
+ ${{ runner.os }}-go-
72
73
74
#### How do I run a step conditionally?
75
0 commit comments