2

In a GitHub Action workflow, I have

- name: Install dependencies
  run: |
    sudo apt-get update
    sudo apt-get install libpq-dev
    sudo apt-get install libcups2-dev
    sudo apt-get install nodejs
    sudo apt-get install yarn

To speed things up, I'd like to cache the installation so I don't have to install them every time I run the workflow (it's ok if the packages are not updated once a new version is released).

How can I use the actions/cache@v2 to create a cache layer once the packages have been installed?

I have already checked this post but I don't feel it answers my question

Sig
  • 5,476
  • 10
  • 49
  • 89

0 Answers0