mirror of
https://gitlab.com/foxixus/neomovies_mobile.git
synced 2025-10-28 03:18:49 +05:00
35 lines
989 B
YAML
35 lines
989 B
YAML
image: ghcr.io/cirruslabs/flutter:beta
|
|
|
|
stages: [build]
|
|
|
|
cache:
|
|
key: $CI_JOB_NAME
|
|
paths:
|
|
- .pub-cache
|
|
- build
|
|
|
|
# --------------------------------------------------------------------------------
|
|
build_android:
|
|
image: ghcr.io/cirruslabs/flutter:beta-android # уже содержит SDK
|
|
stage: build
|
|
script:
|
|
- flutter pub get
|
|
- flutter build apk --release --dart-define=ENV=production
|
|
artifacts:
|
|
paths:
|
|
- build/app/outputs/flutter-apk/app-release.apk
|
|
expire_in: 1 week
|
|
|
|
# --------------------------------------------------------------------------------
|
|
build_linux:
|
|
stage: build
|
|
before_script:
|
|
# Cirrus image уже имеет GTK и CMake; добавляем dev-libs для plugins
|
|
- apt-get update && apt-get install -y libjsoncpp-dev libsecret-1-dev
|
|
script:
|
|
- flutter pub get
|
|
- flutter build linux --release --dart-define=ENV=production
|
|
artifacts:
|
|
paths:
|
|
- build/linux/**/release/bundle
|
|
expire_in: 1 week |