Comments (5)
I see.
I was expecting something similar to circleci's cashe, but it was a misunderstanding.
This has already been reported(#47).
I look forward to the cache function, thank you for the wonderful product.
from toolkit.
Could you share your workflow? To be clear, was it not cached for a later step or for a different job.
We don't cache tools between jobs because jobs are run in clean environments (and possibly different machines).
from toolkit.
I have a dedicated repository.
https://github.com/8398a7/cache-poc/actions
https://github.com/8398a7/cache-poc/blob/master/.github/workflows/poc.yml
The first time I forgot to enable debug logging.
This is the second run.
https://github.com/8398a7/cache-poc/commit/4f0edea37157ac6f6d1f509bcccc3bbebe9fbc4c/checks#step:3:16
This is the third run.
https://github.com/8398a7/cache-poc/commit/4c52a342e5132fedc0d470733c5f7e636b61f926/checks#step:3:16
from toolkit.
Ok, so I think this is working as expected. The tool cache isn't preserved between runs for the same reasons mentioned above - since we're just grabbing a machine from a hosted cloud pool and returning it when we're done there's not a way to persist state between runs. If you tried something like:
name: poc
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 10.15.0
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 10.15.0
you should see that it is cached for the second run.
from toolkit.
Is it common to have the same action several times as different steps in the same job ? I have never seen it before, and I found it quite surprising that the cache is not repopulated when a job is created. Is support for caching between jobs planned ? It could really help speed up builds.
from toolkit.
Related Issues (20)
- `@actions/http-client` - unnecessary dependency upon `undici` HOT 2
- Using core.summary.addList([]) should be a no-op, instead it's broken HTML
- stderr is always sent to stdout unless failOnStdErr is true
- Custom retry codes for `@actions/http-client`
- getInput not working anymore on nodejs HOT 3
- Add an option to follow symlinks in `io.cp`
- cache: too slow cleanup HOT 6
- @actions/cache mutates the `paths` argument.
- Toolcache extracted with wrong modification timestamps
- Cache upload does not handle 429 error HOT 2
- https://youtube.com/@MrBeast?si=f04Nnt9Du9p4eNR4
- The default export of @actions/[email protected] is incorrect HOT 5
- Tool Catching
- Alternative to uploading to the same named Artifact multiple times HOT 1
- `@actions/artifact` dependency `crypto` is deprecated HOT 2
- Non-zero `exitCode` is not accessible from `exec`/`getExecOutput` with `ignoreReturnCode: false`
- getArtifact function using deprecated (due to security and usability issues) buffer function HOT 1
- Regression in @actions/http-client 2.2.0 since 2.1.1: Bundle size increased by 820kB
- getInput empty returned value
- exec should not fail if provided a command with a missing tool when using {ignoreReturnCode: true, failOnStdErr:false}
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from toolkit.