---
kind: pipeline
type: docker
name: default

platform:
  os: linux
  arch: amd64

steps:
- name: build
  image: archlinux:base-devel
  commands:
  - pacman -Sy clang cmake ninja 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 ..
  - flutter config --no-analytics
  - flutter config --enable-linux-desktop
  - flutter clean
  - flutter pub get
  - flutter build linux --release --verbose

...