mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 09:05:10 +00:00
fix: Build Linux CI
This commit is contained in:
parent
3ed1f041a5
commit
1f3f535b58
3 changed files with 13 additions and 52 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,6 +3,7 @@
|
||||||
*.log
|
*.log
|
||||||
*.pyc
|
*.pyc
|
||||||
*.swp
|
*.swp
|
||||||
|
*.snap
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.atom/
|
.atom/
|
||||||
.buildlog/
|
.buildlog/
|
||||||
|
|
|
@ -182,22 +182,19 @@ pages:
|
||||||
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
|
||||||
|
|
|
@ -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