Fix snap actions (#125)
This commit is contained in:
parent
a2bbaace9d
commit
aae810c86a
2 changed files with 16 additions and 10 deletions
25
.github/workflows/snap-release.yml
vendored
25
.github/workflows/snap-release.yml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
1
.github/workflows/snap.yml
vendored
1
.github/workflows/snap.yml
vendored
|
|
@ -58,6 +58,7 @@ jobs:
|
|||
- name: Clone.
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: recursive
|
||||
|
||||
- name: First set up.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue