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
*.pyc
*.swp
*.snap
.DS_Store
.atom/
.buildlog/

View File

@ -181,23 +181,20 @@ pages:
- public
only:
- main
snap:publish-candidate:
stage: publish
image: "cibuilds/snapcraft:core18"
build_linux:
stage: coverage
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:
- 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:
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]