fix: Build Linux CI
This commit is contained in:
parent
e2ca115eca
commit
2a6b5d822e
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,6 +3,7 @@
|
|||
*.log
|
||||
*.pyc
|
||||
*.swp
|
||||
*.snap
|
||||
.DS_Store
|
||||
.atom/
|
||||
.buildlog/
|
||||
|
|
|
@ -182,22 +182,19 @@ pages:
|
|||
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
|
||||
|
|
|
@ -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]
|
Loading…
Reference in a new issue