fix: Build Linux CI

This commit is contained in:
Christian Pauly 2020-10-06 16:31:52 +02:00
parent e2ca115eca
commit 2a6b5d822e
3 changed files with 13 additions and 52 deletions

1
.gitignore vendored
View file

@ -3,6 +3,7 @@
*.log *.log
*.pyc *.pyc
*.swp *.swp
*.snap
.DS_Store .DS_Store
.atom/ .atom/
.buildlog/ .buildlog/

View file

@ -181,23 +181,20 @@ pages:
- public - public
only: only:
- main - main
snap:publish-candidate: build_linux:
stage: publish stage: coverage
image: "cibuilds/snapcraft:core18" script:
- flutter channel dev
- flutter upgrade
- flutter config --enable-linux-desktop
- flutter build linux --release
artifacts:
when: on_success
paths:
- build/linux/release/bundle/
only: only:
- main - main
script:
- snapcraft
- echo $SNAPCRAFT_LOGIN_FILE | base64 --decode --ignore-garbage > snapcraft.login
- snapcraft login --with snapcraft.login
- snapcraft push --release=candidate *.snap
- snapcraft logout
artifacts:
paths:
- './*.snap'
when: on_success
expire_in: 1 week
snap:publish: snap:publish:
stage: publish stage: publish

View file

@ -1,37 +0,0 @@
name: fluffychat
version: 0.1.0
summary: Chat with your friends.
description: Chat with your friends.
icon: assets/logo.png
confinement: strict
base: core18
grade: stable
apps:
fluffychat:
command: fluffychat
extensions: [flutter-dev]
plugs:
- network
- home
parts:
olm:
source: .
source-type: git
plugin: cmake
build-packages:
- build-essential
stage-packages:
- libsqlite3-0
override-build: |
if cd olm; then git pull; else git clone https://gitlab.matrix.org/matrix-org/olm.git; fi
cd olm
cmake . -Bbuild
cmake --build build
sudo make install
fluffychat:
source: .
plugin: flutter
flutter-target: lib/main.dart
after: [olm]