-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
Showing
3 changed files
with
63 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |