Skip to content

Commit

Permalink
use ios in general, update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
abdelaziz-mahdy committed Aug 8, 2024
1 parent 2f176d2 commit 28f46a7
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 37 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/build_cross_platform.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: Build_on_platforms
on:
push:
branches: [ master, testing-ffi]
branches: [master, testing-ffi]
paths:
- '**'
- '!README.md'
- "**"
- "!README.md"
pull_request:
branches: [ master ]
branches: [master]
paths:
- '**'
- '!README.md'
- "**"
- "!README.md"
defaults:
run:
working-directory: example
Expand All @@ -19,10 +19,11 @@ jobs:
name: Android_windows
runs-on: windows-latest
steps:
- uses: actions/setup-java@v1
- uses: actions/setup-java@v4
with:
java-version: '11'
- uses: actions/checkout@v2
distribution: "zulu" # See 'Supported distributions' for available options
java-version: "17"
- uses: actions/checkout@v4
with:
submodules: "true"
- uses: subosito/flutter-action@v2
Expand All @@ -33,20 +34,21 @@ jobs:
# Add separate steps for each ABI
- name: Build and analyze APK for android-arm
run: flutter build apk --analyze-size --target-platform=android-arm

- name: Build and analyze APK for android-arm64
run: flutter build apk --analyze-size --target-platform=android-arm64

- name: Build and analyze APK for android-x64
run: flutter build apk --analyze-size --target-platform=android-x64
run: flutter build apk --analyze-size --target-platform=android-x64
android_macos:
name: Android_macos
runs-on: macos-latest
steps:
- uses: actions/setup-java@v1
- uses: actions/setup-java@v4
with:
java-version: '11'
- uses: actions/checkout@v2
distribution: "zulu" # See 'Supported distributions' for available options
java-version: "17"
- uses: actions/checkout@v4
with:
submodules: "true"
- uses: subosito/flutter-action@v2
Expand All @@ -57,17 +59,17 @@ jobs:
# Add separate steps for each ABI
- name: Build and analyze APK for android-arm
run: flutter build apk --analyze-size --target-platform=android-arm

- name: Build and analyze APK for android-arm64
run: flutter build apk --analyze-size --target-platform=android-arm64

- name: Build and analyze APK for android-x64
run: flutter build apk --analyze-size --target-platform=android-x64
ios:
name: iOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: "true"
- uses: subosito/flutter-action@v2
Expand All @@ -76,5 +78,3 @@ jobs:
cache: true
- run: flutter pub get
- run: flutter build ios --no-codesign


32 changes: 15 additions & 17 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: Integration_tests
on:
push:
branches: [ master, testing-ffi]
branches: [master, testing-ffi]
paths:
- '**'
- '!README.md'
- "**"
- "!README.md"
pull_request:
branches: [ master ]
branches: [master]
paths:
- '**'
- '!README.md'
- "**"
- "!README.md"
defaults:
run:
working-directory: example
Expand All @@ -24,12 +24,13 @@ jobs:
api-level: [33]
target: [google_apis]
steps:
- uses: actions/setup-java@v1
with:
java-version: '11'
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: "true"
- uses: actions/setup-java@v4
with:
distribution: "zulu" # See 'Supported distributions' for available options
java-version: "17"
- uses: subosito/flutter-action@v2
with:
channel: "stable"
Expand All @@ -40,25 +41,22 @@ jobs:
with:
target: ${{ matrix.target }}
api-level: ${{ matrix.api-level }}
arch: x86_64
profile: Nexus 6
script: cd example && flutter pub get && flutter test integration_test



ios_test:
name: iOS_test
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: "true"
- uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true
- uses: futureware-tech/simulator-action@v2
- uses: futureware-tech/simulator-action@v3
with:
model: 'iPhone 8'
os: "iOS"
- run: flutter pub get
- name: Run integration tests
run: flutter test integration_test

0 comments on commit 28f46a7

Please sign in to comment.