Git Product home page Git Product logo

Comments (5)

8398a7 avatar 8398a7 commented on June 4, 2024 1

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.

damccorm avatar damccorm commented on June 4, 2024

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.

8398a7 avatar 8398a7 commented on June 4, 2024

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.

damccorm avatar damccorm commented on June 4, 2024

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.

lovasoa avatar lovasoa commented on June 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.