mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-26 11:13:00 -03:00
Try fixing snap caching
This commit is contained in:
parent
cd660e21c5
commit
db3fb2967e
1 changed files with 11 additions and 1 deletions
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
|
@ -261,12 +261,22 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- 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
|
- name: Restore cache - lxd
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: /var/snap/lxd/common/lxd
|
path: /var/snap/lxd/common/lxd/storage-pools/default
|
||||||
key: snap-lxd-${{ hashFiles('snap/snapcraft.yaml') }}
|
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
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo lxd init --auto
|
sudo lxd init --auto
|
||||||
|
|
Loading…
Add table
Reference in a new issue