a bit more structure

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

View file

@ -8,20 +8,31 @@ platform:
arch: amd64 arch: amd64
steps: steps:
- name: build - name: prepare
image: archlinux:base-devel image: archlinux:base-devel
commands: 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 - useradd builduser -m
- git clone https://aur.archlinux.org/flutter.git - git clone https://aur.archlinux.org/flutter.git
- chown -R builduser:builduser flutter - chown -R builduser:builduser flutter
- cd flutter && su builduser - cd flutter && su builduser
- PKGEXT=".pkg.tar" makepkg - PKGEXT=".pkg.tar" makepkg
- exit
- pacman -U flutter-*-x86_64.pkg.tar --noconfirm - name: build
- cd .. 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 - 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 - name: release
image: plugins/gitea-release image: plugins/gitea-release
@ -35,4 +46,7 @@ steps:
checksum: checksum:
- md5 - md5
- sha256 - sha256
when:
ref:
- refs/tags/v*
... ...