Skip to content

Commit

Permalink
Add clean ios build (#264)
Browse files Browse the repository at this point in the history
* Started with clean ios build

* Used correct ios simulator

* removed flutter doctor command for now

* Added flutter pub get

* Added flutter run step

* Used macos 13

* test

* Test run

* removed step

* Added build

* Test

* Fixed simulator

* Test run

* Added more disk space step

* Test run

* Removed preinstalled xcode versions

* Combined clean build workflow

* Fixed github runner error

* Added workflow call

* fixed path

* Test run

* Adjusted matrix run

* Clean up ios build workflow

* Removed run on branch push
  • Loading branch information
Robert-SD authored Sep 10, 2024
1 parent ef67f07 commit c105cc5
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/android_clean_build.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
name: Android clean build

on:
workflow_call:
workflow_dispatch:
pull_request:
branches: [ "main" ]
push:
tags:
- '*'

jobs:
android_clean_build:
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/clean_build_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Clean build test

on:
workflow_dispatch:
pull_request:
branches: [ "main" ]
push:
tags:
- '*'

jobs:
android_clean_build_test:
name: Android clean build test
uses: ./.github/workflows/android_clean_build.yml

ios_clean_build_test:
name: iOS clean build tests
uses: ./.github/workflows/ios_clean_build.yml

43 changes: 43 additions & 0 deletions .github/workflows/ios_clean_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
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: true
cache-key: ${{ matrix.flutter-version }}

- run: |
flutter pub get
open -a Simulator && xcrun simctl boot ${{ matrix.iPhone }}
flutter create --template=app --platforms=android,ios demo_project
cd demo_project
dart pub add 'adyen_checkout:{"path":"../"}'
flutter build ios --debug --simulator
xcrun simctl install ${{ matrix.iPhone }} build/ios/iphonesimulator/Runner.app
xcrun simctl launch ${{ matrix.iPhone }} com.example.demoProject

0 comments on commit c105cc5

Please sign in to comment.