Reorganize mobile app building
This commit is contained in:
33
.drone.yml
33
.drone.yml
@ -54,6 +54,9 @@ steps:
|
||||
|
||||
- name: backend_build
|
||||
image: rust
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
volumes:
|
||||
- name: rust_registry
|
||||
path: /usr/local/cargo/registry
|
||||
@ -72,20 +75,33 @@ steps:
|
||||
- ls -lah target/release/moneymgr_backend target/release/examples/api_curl
|
||||
- cp target/release/moneymgr_backend target/release/examples/api_curl /tmp/release
|
||||
|
||||
# Mobile app
|
||||
- name: mobile_app
|
||||
# Mobile app code quality
|
||||
- name: mobile_app_code_quality
|
||||
image: ghcr.io/cirruslabs/flutter:latest
|
||||
depends_on:
|
||||
- backend_build
|
||||
volumes:
|
||||
- name: release
|
||||
path: /tmp/release
|
||||
commands:
|
||||
- cd moneymgr_mobile
|
||||
- flutter --disable-analytics
|
||||
- flutter pub get --enforce-lockfile
|
||||
- dart run build_runner build
|
||||
- flutter analyze
|
||||
|
||||
# Mobile app build
|
||||
- name: mobile_app_build
|
||||
image: ghcr.io/cirruslabs/flutter:latest
|
||||
depends_on:
|
||||
- backend_build # prevent synchronous backend & frontend build
|
||||
- mobile_app_code_quality
|
||||
volumes:
|
||||
- name: release
|
||||
path: /tmp/release
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
commands:
|
||||
- cd moneymgr_mobile
|
||||
- flutter --disable-analytics
|
||||
- flutter pub get --enforce-lockfile
|
||||
- dart run build_runner build
|
||||
- flutter build apk
|
||||
--release
|
||||
--build-name $(git describe --tags --abbrev=0)
|
||||
@ -94,12 +110,13 @@ steps:
|
||||
- cp build/app/outputs/flutter-apk/app-release.apk /tmp/release/moneymgr_mobile_arm64-v8a.apk
|
||||
|
||||
|
||||
|
||||
# Release
|
||||
- name: gitea_release
|
||||
image: plugins/gitea-release
|
||||
depends_on:
|
||||
- backend_build
|
||||
- mobile_app
|
||||
- mobile_app_build
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
|
Reference in New Issue
Block a user