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: jobs:
linux: linux:
name: Ubuntu 20.04 name: Ubuntu
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v1 uses: actions/checkout@v2
with: with:
fetch-depth: 0
submodules: recursive submodules: recursive
- name: First set up - name: First set up.
run: | run: |
# Workaround for permanent problems with third-party repository keys sudo apt-get purge --autoremove lxd
sudo rm -rf /etc/apt/sources.list.d/*
sudo apt-get update
sudo snap install --classic snapcraft sudo snap install --classic snapcraft
sudo snap install lxd
# Workaround for snapcraft # 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 / sudo chown root:root /
- name: Kotatogram Desktop snap build sudo usermod -aG lxd $USER
run: sudo snap run snapcraft --destructive-mode
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 - name: Get artifact name
run: | run: |

View file

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