mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-25 23:39:43 -05:00
Add cache to snap build
This commit is contained in:
parent
0631d14d78
commit
d8d936b9fa
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@ -261,14 +261,21 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Restore cache - lxd
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: /var/snap/lxd/common/lxd
|
||||||
|
key: snap-lxd-${{ hashFiles('snap/snapcraft.yaml') }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo lxd init --auto
|
sudo lxd init --auto
|
||||||
|
sudo lxc storage list
|
||||||
sudo snap install snapcraft --classic
|
sudo snap install snapcraft --classic
|
||||||
sudo ufw disable
|
sudo ufw disable
|
||||||
|
|
||||||
- name: Build snap
|
- name: Build snap
|
||||||
run: sudo snapcraft --use-lxd
|
run: sudo snapcraft
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user