2021-08-11 15:58:29 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
2021-08-15 01:42:33 +02:00
|
|
|
- name: prepare
|
2021-08-11 15:58:29 +02:00
|
|
|
image: archlinux:base-devel
|
|
|
|
commands:
|
2021-08-15 01:42:33 +02:00
|
|
|
- pacman -Sy git java-environment glu unzip libglvnd python --noconfirm
|
2021-08-14 21:13:37 +02:00
|
|
|
- useradd builduser -m
|
|
|
|
- git clone https://aur.archlinux.org/flutter.git
|
|
|
|
- chown -R builduser:builduser flutter
|
|
|
|
- cd flutter && su builduser
|
|
|
|
- PKGEXT=".pkg.tar" makepkg
|
2021-08-15 01:42:33 +02:00
|
|
|
|
|
|
|
- name: build
|
|
|
|
image: archlinux:base-devel
|
|
|
|
commands:
|
|
|
|
- pacman -Sy clang cmake ninja git unzip gtk3 --noconfirm
|
|
|
|
- pacman -U flutter/flutter-*-x86_64.pkg.tar --noconfirm
|
2021-08-14 23:07:37 +02:00
|
|
|
- sh scripts/build-linux.sh
|
2021-08-15 01:42:33 +02:00
|
|
|
|
|
|
|
- name: bundle
|
|
|
|
image: archlinux:base-devel
|
|
|
|
commands:
|
|
|
|
- tar -a -v --zstd -cf fluffychat-linux-x86.tar.zst -C build/linux/x64/release/bundle/ .
|
|
|
|
when:
|
|
|
|
ref:
|
|
|
|
- refs/tags/v*
|
2021-08-11 15:58:29 +02:00
|
|
|
|
2021-08-14 23:07:37 +02:00
|
|
|
- name: release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
base_url: https://git.entr0py.de
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|
|
|
|
files:
|
2021-08-15 01:42:33 +02:00
|
|
|
- fluffychat-linux-x86.tar.zst
|
|
|
|
#note: CHANGELOG.md
|
2021-08-14 23:07:37 +02:00
|
|
|
checksum:
|
|
|
|
- md5
|
|
|
|
- sha256
|
2021-08-15 01:42:33 +02:00
|
|
|
when:
|
|
|
|
ref:
|
|
|
|
- refs/tags/v*
|
2021-08-11 15:58:29 +02:00
|
|
|
...
|