Update CI
This commit is contained in:
parent
1e8ef67aef
commit
e5956053d3
1 changed files with 31 additions and 44 deletions
|
@ -7,20 +7,6 @@ variables:
|
||||||
stages:
|
stages:
|
||||||
- archive
|
- archive
|
||||||
|
|
||||||
android:debug:
|
|
||||||
stage: archive
|
|
||||||
before_script:
|
|
||||||
- flutter create .
|
|
||||||
- flutter packages get
|
|
||||||
- flutter clean
|
|
||||||
script:
|
|
||||||
- flutter doctor --android-licenses
|
|
||||||
- flutter build apk --debug
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- "**/**/**/**/**/**/*.apk"
|
|
||||||
expire_in: 1 day
|
|
||||||
|
|
||||||
android:release:
|
android:release:
|
||||||
stage: archive
|
stage: archive
|
||||||
before_script:
|
before_script:
|
||||||
|
@ -35,26 +21,6 @@ android:release:
|
||||||
- "**/**/**/**/**/**/*.apk"
|
- "**/**/**/**/**/**/*.apk"
|
||||||
expire_in: 1 day
|
expire_in: 1 day
|
||||||
|
|
||||||
ios:debug:
|
|
||||||
stage: archive
|
|
||||||
before_script:
|
|
||||||
- flutter create .
|
|
||||||
- flutter packages get
|
|
||||||
- flutter clean
|
|
||||||
script:
|
|
||||||
- flutter build ipa
|
|
||||||
- if [ -d archive ]; then rm -rf archive; fi && mkdir archive
|
|
||||||
- if [ -d artifact ]; then rm -rf artifact; fi && mkdir artifact
|
|
||||||
- export PLIST_DIRECTORY="ci-cd/iOS/${FLAVOR}/debug"
|
|
||||||
- cd ios
|
|
||||||
- pod install;
|
|
||||||
- xcodebuild clean archive -quiet -workspace ${IOS_XCODE_PROJECT_NAME}.xcworkspace -scheme ${FLAVOR} -archivePath "../archive/${IOS_XCODE_PROJECT_NAME}.xcarchive";
|
|
||||||
- xcodebuild -quiet -exportArchive -archivePath "../archive/${IOS_XCODE_PROJECT_NAME}.xcarchive" -exportPath ../artifact/ -exportOptionsPlist ${PLIST_DIRECTORY}/*.plist
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- "artifact/*.ipa"
|
|
||||||
expire_in: 1 day
|
|
||||||
|
|
||||||
ios:release:
|
ios:release:
|
||||||
stage: archive
|
stage: archive
|
||||||
before_script:
|
before_script:
|
||||||
|
@ -84,20 +50,41 @@ web:release:
|
||||||
script:
|
script:
|
||||||
- flutter build web --release
|
- flutter build web --release
|
||||||
|
|
||||||
windows:debug:
|
|
||||||
stage: archive
|
|
||||||
before_script:
|
|
||||||
- flutter create .
|
|
||||||
- flutter packages get
|
|
||||||
- flutter clean
|
|
||||||
script:
|
|
||||||
- flutter build windows --debug
|
|
||||||
|
|
||||||
windows:release:
|
windows:release:
|
||||||
|
extends:
|
||||||
|
- .shared_windows_runners
|
||||||
stage: archive
|
stage: archive
|
||||||
before_script:
|
before_script:
|
||||||
|
- choco install visualstudio2019community -y
|
||||||
|
- choco install vcredist-all -y
|
||||||
|
- Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
|
||||||
|
- refreshenv
|
||||||
- flutter create .
|
- flutter create .
|
||||||
- flutter packages get
|
- flutter packages get
|
||||||
- flutter clean
|
- flutter clean
|
||||||
script:
|
script:
|
||||||
- flutter build windows --release
|
- flutter build windows --release
|
||||||
|
|
||||||
|
macos:release:
|
||||||
|
extends:
|
||||||
|
- .macos_saas_runners
|
||||||
|
stage: archive
|
||||||
|
before_script:
|
||||||
|
- gem install cocoapods
|
||||||
|
- flutter create .
|
||||||
|
- cd macos
|
||||||
|
- pod install
|
||||||
|
- pod update
|
||||||
|
- flutter packages get
|
||||||
|
- flutter clean
|
||||||
|
script:
|
||||||
|
- flutter build macos --release
|
||||||
|
|
||||||
|
linux:release:
|
||||||
|
stage: archive
|
||||||
|
before_script:
|
||||||
|
- flutter create .
|
||||||
|
- flutter packages get
|
||||||
|
- flutter clean
|
||||||
|
script:
|
||||||
|
- flutter build linux --release
|
Loading…
Add table
Reference in a new issue