This release introduces support for caching dependency files and compiler's build outputs #228. For that action uses @toolkit/cache library under the hood that in turn allows getting rid of configuring @actions/cache action separately and simplifies the whole workflow.
Such input parameters as cache
and cache-dependency-path
were added. The cache
input is optional, and caching is turned off by default, cache-dependency-path
is used to specify the path to a dependency file - go.sum
.
Examples of use-cases:
cache
input only:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '18'
cache: true
cache
along withcache-dependency-path
:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '18'
cache: true
cache-dependency-path: subdir/go.sum