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:
|
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: |
|
||||||
|
|
|
||||||
1
.github/workflows/snap.yml
vendored
1
.github/workflows/snap.yml
vendored
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue