aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorGravatar MichaƂ Sawicz <michal@sawicz.net>2021-02-28 08:14:46 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-03-01 12:48:11 -0800
commit6dccfc75dca49e901aecc2e76310cef3ba1a60a4 (patch)
tree045e77d5b26e09d4636ef38360a7812b6354e00b /.github
parent345959177f67807963de1c56534c89df149bdf2a (diff)
downloadsubsurface-6dccfc75dca49e901aecc2e76310cef3ba1a60a4.tar.gz
[gha] simplify LXD handling
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/linux-snap.yml10
1 files changed, 3 insertions, 7 deletions
diff --git a/.github/workflows/linux-snap.yml b/.github/workflows/linux-snap.yml
index 1f69e232b..be1a61a41 100644
--- a/.github/workflows/linux-snap.yml
+++ b/.github/workflows/linux-snap.yml
@@ -23,10 +23,6 @@ jobs:
- name: Setup LXD
uses: whywaita/setup-lxd@v1
- - name: Add user to LXD group
- run: |
- sudo adduser ${USER} lxd
-
- name: Check out code
uses: actions/checkout@v2
with:
@@ -38,7 +34,7 @@ jobs:
run: |
sudo apt-get install ccache
ccache --max-size=2G
- sg lxd -c '/snap/bin/lxc profile device add default ccache disk source=${HOME}/.ccache/ path=/root/.ccache'
+ /snap/bin/lxc profile device add default ccache disk source=${HOME}/.ccache/ path=/root/.ccache
# Patch snapcraft.yaml to enable ccache
patch -p1 < .github/workflows/linux-snap.patch
@@ -58,7 +54,7 @@ jobs:
- name: Build
run: |
# Build the `subsurface` part.
- sg lxd -c '/snap/bin/snapcraft build --use-lxd subsurface'
+ /snap/bin/snapcraft build --use-lxd subsurface
- name: Clear CCache stats
run: ccache --show-stats --zero-stats
@@ -69,7 +65,7 @@ jobs:
SNAP_ENFORCE_RESQUASHFS: 0
run: |
# Actually build the snap.
- sg lxd -c '/snap/bin/snapcraft --use-lxd'
+ /snap/bin/snapcraft --use-lxd
sudo snap install review-tools
/snap/bin/review-tools.snap-review *.snap