@@ -84,18 +84,11 @@ jobs:
8484 - name : Run tests
8585 run : dart pub global run melos run test
8686
87- # Android builds (ARM64, ARMv7, x86_64)
87+ # Android build
8888 build-android :
89- name : Build Android (${{ matrix.abi }})
89+ name : Build Android
9090 runs-on : ubuntu-latest
9191 needs : [lint]
92- strategy :
93- fail-fast : false
94- matrix :
95- abi :
96- - arm64-v8a
97- - armeabi-v7a
98- - x86_64
9992
10093 steps :
10194 - name : Checkout repository
@@ -125,31 +118,21 @@ jobs:
125118 distribution : ' temurin'
126119 java-version : ' 17'
127120
128- - name : Build cnativeapi example Android (${{ matrix.abi }})
121+ - name : Build cnativeapi example Android
129122 run : |
130123 cd packages/cnativeapi/example
131- flutter build apk --release --target-platform android-${{ matrix.abi }}
124+ flutter build apk --release
132125
133- - name : Build nativeapi example Android (${{ matrix.abi }})
126+ - name : Build nativeapi example Android
134127 run : |
135128 cd packages/nativeapi/example
136- flutter build apk --release --target-platform android-${{ matrix.abi }}
129+ flutter build apk --release
137130
138- # iOS builds (device and simulator)
131+ # iOS build
139132 build-ios :
140- name : Build iOS (${{ matrix.target }})
133+ name : Build iOS
141134 runs-on : macos-latest
142135 needs : [lint]
143- strategy :
144- fail-fast : false
145- matrix :
146- include :
147- - target : device
148- sdk : iphoneos
149- platform_name : iOS Device
150- - target : simulator
151- sdk : iphonesimulator
152- platform_name : iOS Simulator
153136
154137 steps :
155138 - name : Checkout repository
@@ -173,23 +156,15 @@ jobs:
173156 - name : Bootstrap melos
174157 run : dart pub global run melos bootstrap
175158
176- - name : Build cnativeapi example iOS (${{ matrix.target }})
159+ - name : Build cnativeapi example iOS
177160 run : |
178161 cd packages/cnativeapi/example
179- if [ "${{ matrix.target }}" == "simulator" ]; then
180- flutter build ios --simulator --release --no-codesign
181- else
182- flutter build ios --release --no-codesign
183- fi
162+ flutter build ios --release --no-codesign
184163
185- - name : Build nativeapi example iOS (${{ matrix.target }})
164+ - name : Build nativeapi example iOS
186165 run : |
187166 cd packages/nativeapi/example
188- if [ "${{ matrix.target }}" == "simulator" ]; then
189- flutter build ios --simulator --release --no-codesign
190- else
191- flutter build ios --release --no-codesign
192- fi
167+ flutter build ios --release --no-codesign
193168
194169 # Linux build
195170 build-linux :
0 commit comments