From d8d936b9fa02fc138a752baea1e054f371e61402 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Fri, 20 Oct 2023 17:23:48 -0700 Subject: [PATCH] Add cache to snap build --- .github/workflows/build.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 30ce8704..d79ba01a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -261,14 +261,21 @@ jobs: steps: - 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 run: | sudo lxd init --auto + sudo lxc storage list sudo snap install snapcraft --classic sudo ufw disable - name: Build snap - run: sudo snapcraft --use-lxd + run: sudo snapcraft - uses: actions/upload-artifact@v3 with: