Fix snap actions (#125)

This commit is contained in:
ilya-fedin 2020-12-24 06:14:28 +04:00 committed by GitHub
parent a2bbaace9d
commit aae810c86a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 10 deletions

View file

@ -7,29 +7,34 @@ on:
jobs:
linux:
name: Ubuntu 20.04
runs-on: ubuntu-20.04
name: Ubuntu
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive
- name: First set up
- name: First set up.
run: |
# Workaround for permanent problems with third-party repository keys
sudo rm -rf /etc/apt/sources.list.d/*
sudo apt-get purge --autoremove lxd
sudo apt-get update
sudo snap install --classic snapcraft
sudo snap install lxd
# Workaround for snapcraft
# See https://forum.snapcraft.io/t/permissions-problem-using-snapcraft-in-azure-pipelines/13258
# See https://forum.snapcraft.io/t/13258
sudo chown root:root /
- name: Kotatogram Desktop snap build
run: sudo snap run snapcraft --destructive-mode
sudo usermod -aG lxd $USER
sudo snap run lxd init --auto
sudo snap run lxd waitready
- name: Kotatogram Desktop snap build.
run: sg lxd -c 'snap run snapcraft --use-lxd'
- name: Get artifact name
run: |

View file

@ -58,6 +58,7 @@ jobs:
- name: Clone.
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive
- name: First set up.