mirror of
https://github.com/onionshare/onionshare.git
synced 2025-04-22 16:29:12 -04:00
Try caching /var/lib/snapd
This commit is contained in:
parent
a4cd308400
commit
e7401bee74
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
@ -344,6 +344,20 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Restore cache - snapcraft
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/snapcraft-cache
|
||||
key: snapcraft-cache-1
|
||||
|
||||
- name: Move cache from home
|
||||
run: |
|
||||
if [[ -d "~/snapcraft-cache" ]]; then
|
||||
sudo mv ~/snapcraft-cache /var/lib/snapd
|
||||
sudo chown -R root:root /var/lib/snapd
|
||||
echo "moved cache from home to root"
|
||||
fi
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo lxd init --auto
|
||||
@ -352,6 +366,11 @@ jobs:
|
||||
- name: Build snap
|
||||
run: sudo snapcraft --use-lxd
|
||||
|
||||
- name: Move cache to home
|
||||
run: |
|
||||
sudo mv /var/lib/snapd ~/snapcraft-cache
|
||||
sudo chown -R $USER:$USER ~/snapcraft-cache
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: snapcraft-build
|
||||
|
Loading…
x
Reference in New Issue
Block a user