a bit more structure

This commit is contained in:
garionion 2021-08-15 01:42:33 +02:00
parent b49ec8d769
commit 8d19c7d38b
Signed by: garionion
GPG key ID: 53352FA607FA681A

View file

@ -8,20 +8,31 @@ platform:
arch: amd64
steps:
- name: build
- name: prepare
image: archlinux:base-devel
commands:
- pacman -Sy clang cmake ninja git java-environment glu unzip libglvnd python gtk3 --noconfirm
- pacman -Sy git java-environment glu unzip libglvnd python --noconfirm
- useradd builduser -m
- git clone https://aur.archlinux.org/flutter.git
- chown -R builduser:builduser flutter
- cd flutter && su builduser
- PKGEXT=".pkg.tar" makepkg
- exit
- pacman -U flutter-*-x86_64.pkg.tar --noconfirm
- cd ..
- 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
- sh scripts/build-linux.sh
- tar -a -jcf fluffychat-linux-x86.tgz build/linux/x64/release/bundle/*
- name: bundle
image: archlinux:base-devel
commands:
- cd build/linux/x64/release/bundle/
- tar -a -jcf fluffychat-linux-x86.tgz ./*
when:
ref:
- refs/tags/v*
- name: release
image: plugins/gitea-release
@ -31,8 +42,11 @@ steps:
from_secret: gitea_token
files:
- fluffychat-linux-x86.tgz
note: CHANGELOG.md
#note: CHANGELOG.md
checksum:
- md5
- sha256
when:
ref:
- refs/tags/v*
...