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

View File

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

View File

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

View File

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