mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-30 16:29:30 +01:00
CI: Fix Snap build
This commit is contained in:
parent
0a5270bbf7
commit
ac348910da
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user