CI: Fix Snap build

This commit is contained in:
Christian Pauly 2021-04-25 08:48:32 +02:00
parent 0a5270bbf7
commit ac348910da
4 changed files with 27 additions and 36 deletions

View File

@ -167,39 +167,32 @@ build_linux:
paths:
- build/linux/release/bundle/
#snap:edge:
# stage: release
# image: "snapcore/snapcraft"
# before_script:
# - apt update && apt install git curl unzip clang cmake build-essential ninja-build pkg-config libgtk-3-dev libblkid-dev liblzma-dev -y
# - git clone https://github.com/flutter/flutter.git
# - export PATH="$PATH:`pwd`/flutter/bin"
# variables:
# SNAPCRAFT_LOGIN_FILE: ${SNAPCRAFT_LOGIN_FILE}
# only:
# - main
# script: [./scripts/publish-snap-edge.sh]
# needs: ["build_linux"]
# dependencies: ["build_linux"]
# artifacts:
# paths:
# - "./*.snap"
# when: on_success
snap:edge:
stage: release
image: "snapcore/snapcraft"
variables:
SNAPCRAFT_LOGIN_FILE: ${SNAPCRAFT_LOGIN_FILE}
only: [main]
script: [./scripts/publish-snap-edge.sh]
needs: ["build_linux"]
dependencies: ["build_linux"]
artifacts:
paths:
- "./*.snap"
when: on_success
#snap:publish:
# stage: release
# image: "snapcore/snapcraft"
# variables:
# SNAPCRAFT_LOGIN_FILE: ${SNAPCRAFT_LOGIN_FILE}
# only:
# - tags
# script: [./scripts/publish-snap-stable.sh]
# needs: ["build_linux"]
# artifacts:
# paths:
# - "./*.snap"
# when: on_success
# expire_in: 1 week
snap:publish:
stage: release
image: "snapcore/snapcraft"
variables:
SNAPCRAFT_LOGIN_FILE: ${SNAPCRAFT_LOGIN_FILE}
only: [tags]
script: [./scripts/publish-snap-stable.sh]
needs: ["build_linux"]
artifacts:
paths:
- "./*.snap"
when: on_success
update-dependencies:
stage: coverage

View File

@ -1,5 +1,5 @@
#!/bin/sh -ve
snapcraft
snapcraft remote-build
echo $SNAPCRAFT_LOGIN_FILE | base64 --decode --ignore-garbage > snapcraft.login
snapcraft login --with snapcraft.login
snapcraft push --release=edge *.snap

View File

@ -1,5 +1,5 @@
#!/bin/sh -ve
snapcraft
snapcraft remote-build
echo $SNAPCRAFT_LOGIN_FILE | base64 --decode --ignore-garbage > snapcraft.login
snapcraft login --with snapcraft.login
snapcraft push --release=stable *.snap

View File

@ -22,7 +22,6 @@ description: |
grade: stable
confinement: strict
icon: assets/logo.png
parts:
olm:
@ -37,7 +36,6 @@ parts:
source: ./build/linux/release/bundle/
stage-packages:
- libsqlite3-dev
#- libolm-dev # Not available in core18
slots:
dbus-svc: