Cache envs for faster github actions (#291)

* Cache pip for faster actions

* Add caching to viewer

* Fix Path

* typo

* try path again

* Fancier caching
This commit is contained in:
Matthew Tancik authored and GitHub committed 2022-08-23 09:30:03 -07:00
1 parent 7523e2dd6d
commit 68f4370133
2 files changed
+9 -6

No files matched your search

+3 -2
View File
@@ -21,7 +21,8 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 17.8.0
# cache: 'yarn'
cache: 'yarn'
cache-dependency-path: ./nerfactory/viewer/app/yarn.lock
- name: Install packages
run: yarn install
@@ -71,4 +72,4 @@ jobs:
- run: ssh github_action_remote_machine 'rm -rf /home/eweb0124/viewer/branch/${{ env.BRANCH_NAME }}'
- run: scp -r ./nerfactory/viewer/app/build github_action_remote_machine:/home/eweb0124/
# TODO(ethan): move the current version to an older folder
- run: ssh github_action_remote_machine 'mv /home/eweb0124/build /home/eweb0124/viewer/branch/${{ env.BRANCH_NAME }}'
- run: ssh github_action_remote_machine 'mv /home/eweb0124/build /home/eweb0124/viewer/branch/${{ env.BRANCH_NAME }}'