-
Notifications
You must be signed in to change notification settings - Fork 126
37 lines (35 loc) · 961 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: build
on:
push:
pull_request:
branches: master
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: "3.0.5"
architecture: x64
# or: 'beta', 'dev' or 'master'
- run: flutter pub get
#Android
- run: |
cd example
flutter pub get
flutter build apk
#IOS
- run: |
cd example
flutter pub get
cd ios
flutter clean
rm Pods && rm Podfile.lock
flutter pub get
pod install --repo-update
xcodebuild -workspace Runner.xcworkspace -configuration Debug -scheme Runner -destination "platform=iOS Simulator,OS=16.2,name=iPhone 14" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO