mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-06 05:14:13 -04:00
Only cache /var/lib/snapd/cache
This commit is contained in:
parent
e7401bee74
commit
defc7a8cbe
1 changed files with 10 additions and 9 deletions
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
|
@ -350,25 +350,26 @@ jobs:
|
||||||
path: ~/snapcraft-cache
|
path: ~/snapcraft-cache
|
||||||
key: snapcraft-cache-1
|
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
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo lxd init --auto
|
sudo lxd init --auto
|
||||||
sudo snap install snapcraft --classic
|
sudo snap install snapcraft --classic
|
||||||
|
|
||||||
|
- name: Move cache from home
|
||||||
|
run: |
|
||||||
|
if [[ -d "~/snapcraft-cache" ]]; then
|
||||||
|
sudo rm -r /var/lib/snapd/cache
|
||||||
|
sudo mv ~/snapcraft-cache /var/lib/snapd/cache
|
||||||
|
sudo chown -R root:root /var/lib/snapd/cache
|
||||||
|
echo "moved cache from home to root"
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Build snap
|
- name: Build snap
|
||||||
run: sudo snapcraft --use-lxd
|
run: sudo snapcraft --use-lxd
|
||||||
|
|
||||||
- name: Move cache to home
|
- name: Move cache to home
|
||||||
run: |
|
run: |
|
||||||
sudo mv /var/lib/snapd ~/snapcraft-cache
|
sudo mv /var/lib/snapd/cache ~/snapcraft-cache
|
||||||
sudo chown -R $USER:$USER ~/snapcraft-cache
|
sudo chown -R $USER:$USER ~/snapcraft-cache
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue