From 2a6b5d822e84b1a885898432632b85814e8f8c17 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Tue, 6 Oct 2020 16:31:52 +0200 Subject: [PATCH] fix: Build Linux CI --- .gitignore | 1 + .gitlab-ci.yml | 27 ++++++++++++--------------- snap/snapcraft.yaml | 37 ------------------------------------- 3 files changed, 13 insertions(+), 52 deletions(-) delete mode 100644 snap/snapcraft.yaml diff --git a/.gitignore b/.gitignore index bee4c81..e059815 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ *.log *.pyc *.swp +*.snap .DS_Store .atom/ .buildlog/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ea0ca7c..61adb58 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml deleted file mode 100644 index f235933..0000000 --- a/snap/snapcraft.yaml +++ /dev/null @@ -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]