-
-
Notifications
You must be signed in to change notification settings - Fork 58
53 lines (45 loc) · 1.34 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
53
name: Create an iOS Simulator build
on:
push:
paths:
- '*'
- '.github/workflows/build-ios-simulator.yml'
- 'assets/**'
- 'lib/**'
- 'ios/**'
- '!**/*.md'
branches:
- main
jobs:
build-ios-simulator:
name: Create an iOS Simulator build
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
# Setup the flutter environment.
- name: Setup Flutter environment
uses: subosito/flutter-action@v2
with:
cache: true
- name: Restore Pods cache
uses: actions/cache@v4
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_samples.app
mkdir -p output
zip -r -y -o output/flutter_samples.zip flutter_samples.app
- name: Save build file as artifact
uses: actions/upload-artifact@v4
with:
name: flutter_samples
path: build/ios/iphonesimulator/output