Skip to content

Commit

Permalink
try ios ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ptgms committed Jul 4, 2023
1 parent b3fa54d commit 755ae63
Showing 1 changed file with 38 additions and 11 deletions.
49 changes: 38 additions & 11 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,31 @@
image: appleboy/git:latest

stages:
- prepare
- build

before_script:
- git clone https://github.com/flutter/flutter.git -b stable
- export PATH="$PATH:`pwd`/flutter/bin"
- flutter doctor

prepare_macos:
stage: prepare
tags:
- macos
script:
- export PATH="$PATH:`pwd`/flutter/bin"
- flutter doctor

#prepare_windows:
# stage: prepare
# tags:
# - windows
# script:
# - flutter doctor
#
#prepare_linux:
# stage: prepare
# tags:
# - linux
# script:
# - flutter doctor

build_android:
stage: build
Expand All @@ -21,10 +40,18 @@ build_android:
paths:
- build/app/outputs/bundle/release/app-release.aab

#build_ios:
# stage: build
# tags:
# - macos
# script:
# - flutter clean
# - flutter build ios --release --no-codesign
build_ios:
stage: build
tags:
- macos
script:
- flutter clean
- flutter build ios --release --no-codesign
- cd build/ios/iphoneos
- mkdir Payload
- mv Runner.app Payload/Runner.app
- zip -r build.ipa Payload
artifacts:
name: iOS Release
paths:
- build/ios/iphoneos/build.ipa

0 comments on commit 755ae63

Please sign in to comment.