Is there a way to store spago cache in Github Actions?

Hi, I’m deploying with GitHub Actions using actions/checkout@v2 which works fine with yarn, but it spago build constantly installs, I wish to cache the spago builds so it saves a bit of resources.

I’m a little bit unaware of how spago uses the cache, is there a folder path I can use to cache?

This is my action:

# This file was auto-generated by the Firebase CLI

name: Deploy to Firebase Hosting on merge
      - main
    runs-on: ubuntu-latest
      - uses: actions/checkout@v2
      - run: cd ./frontend2 && yarn install && yarn build
      - uses: FirebaseExtended/action-hosting-deploy@v0
          entryPoint: ./frontend2
          repoToken: '${{ secrets.GITHUB_TOKEN }}'
          firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_projectId }}'
          channelId: live
          projectId: projectId

Thank you so much for your help :sparkles:

Yes, most of the purescript-contrib libraries cache the spago dependencies in Github Actions.

For example:

1 Like

Oooh perfect, thank you so much :hugs: