-
Notifications
You must be signed in to change notification settings - Fork 7
51 lines (42 loc) · 1.55 KB
/
ios_clean_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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: iOS clean build
on:
workflow_call:
workflow_dispatch:
jobs:
ios_clean_build:
runs-on: macos-14
strategy:
matrix:
iPhone: [ "'iPhone 15'" ]
flutter-version: [ "3.19.0", "3.22.0", "3.24.0" ]
steps:
- name: Provide more disk space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf /Applications/Xcode_14.3.1.app
sudo rm -rf /Applications/Xcode_15.0.1.app
sudo rm -rf /Applications/Xcode_15.1.app
sudo rm -rf /Applications/Xcode_15.2.app
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ matrix.flutter-version }}
channel: 'stable'
cache-key: ${{ matrix.flutter-version }}
- run: flutter pub get
- name: Create default project and add Adyen checkout plugin package
run: |
flutter create --template=app --platforms=android,ios demo_project
cd demo_project
dart pub add 'adyen_checkout:{"path":"../"}'
- name: Build app for simulator
working-directory: demo_project
run: flutter build ios --debug --simulator
- name: Install app on simulator
working-directory: demo_project
run: |
open -a Simulator && xcrun simctl boot ${{ matrix.iPhone }}
xcrun simctl install ${{ matrix.iPhone }} build/ios/iphonesimulator/Runner.app
xcrun simctl launch ${{ matrix.iPhone }} com.example.demoProject