-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (44 loc) · 1.35 KB
/
build-ios-simulator.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Create an iOS Simulator build
on:
push:
paths:
- '*'
- '.github/workflows/build-ios-simulator.yml'
- 'lib/**'
- 'ios/**'
- '!**/*.md'
branches:
- flutter
jobs:
build-ios-simulator:
name: Create an iOS Simulator build
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
# Setup the flutter environment.
- name: Setup Flutter environment
uses: subosito/flutter-action@v2
with:
cache: true
- name: Restore Pods cache
uses: actions/cache@v3
with:
path: |
ios/Pods
~/Library/Caches/CocoaPods
~/.cocoapods
key: ${{ runner.os }}-pods-${{ hashFiles('ios/Podfile.lock') }}
restore-keys: ${{ runner.os }}-pods-
- name: Build iOS ipa
run: flutter build ios --simulator --no-codesign --obfuscate --split-debug-info --config-only
- name: Store build .app file as zip
run: |
cd build/ios/iphonesimulator
mv Runner.app flutter_github_actions.app
mkdir -p output
zip -r -y -o output/flutter_github_actions.zip flutter_github_actions.app
- name: Save build file as artifact
uses: actions/upload-artifact@v3
with:
name: flutter_github_actions
path: build/ios/iphonesimulator/output