Skip to content

Commit

Permalink
Merge pull request #70 from natsuk4ze/update-workflow
Browse files Browse the repository at this point in the history
Set sd card with Android <29 in workflow
  • Loading branch information
natsuk4ze authored Aug 8, 2023
2 parents b30fc69 + a57d574 commit 69f6540
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
arch: x86_64
emulator-boot-timeout: 300
force-avd-creation: false
sdcard-path-or-size: ${{ matrix.api-level <= 23 && '10M' || null }}
sdcard-path-or-size: ${{ matrix.api-level < 29 && '10M' || null }}
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -camera-front none
script: echo "Generated AVD snapshot for caching."

Expand All @@ -128,7 +128,7 @@ jobs:
arch: x86_64
emulator-boot-timeout: 120
force-avd-creation: false
sdcard-path-or-size: ${{ matrix.api-level <= 23 && '10M' || null }}
sdcard-path-or-size: ${{ matrix.api-level < 29 && '10M' || null }}
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -camera-front none
script: |
if [ ${{ matrix.api-level }} -le 29 ]; then flutter build apk --debug; adb install -r build/app/outputs/flutter-apk/app-debug.apk; adb shell pm grant studio.midoridesign.gal_example android.permission.WRITE_EXTERNAL_STORAGE; fi
Expand All @@ -146,7 +146,7 @@ jobs:
arch: x86_64
emulator-boot-timeout: 120
force-avd-creation: false
sdcard-path-or-size: ${{ matrix.api-level <= 23 && '10M' || null }}
sdcard-path-or-size: ${{ matrix.api-level < 29 && '10M' || null }}
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -camera-front none
pre-emulator-launch-script: |
adb kill-server
Expand All @@ -166,7 +166,7 @@ jobs:
arch: x86_64
emulator-boot-timeout: 120
force-avd-creation: false
sdcard-path-or-size: ${{ matrix.api-level <= 23 && '10M' || null }}
sdcard-path-or-size: ${{ matrix.api-level < 29 && '10M' || null }}
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -camera-front none
pre-emulator-launch-script: |
adb kill-server
Expand Down

0 comments on commit 69f6540

Please sign in to comment.