Try fixing snap caching

This commit is contained in:
Micah Lee 2023-10-20 19:00:33 -07:00
parent cd660e21c5
commit db3fb2967e
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -261,12 +261,22 @@ jobs:
steps:
- uses: actions/checkout@v3
# Change permissions before caching
- name: Set permissions for caching
run: sudo chmod -R 777 /var/snap/lxd/common/lxd/storage-pools/default
continue-on-error: true
- name: Restore cache - lxd
uses: actions/cache@v3
with:
path: /var/snap/lxd/common/lxd
path: /var/snap/lxd/common/lxd/storage-pools/default
key: snap-lxd-${{ hashFiles('snap/snapcraft.yaml') }}
# Restore original permissions after caching
- name: Restore permissions after caching
run: sudo chmod -R 755 /var/snap/lxd/common/lxd/storage-pools/default
continue-on-error: true
- name: Install dependencies
run: |
sudo lxd init --auto