diff --git a/.github/workflows/android_tests.yml b/.github/workflows/android_tests.yml index 48ccb599..3904bdd4 100644 --- a/.github/workflows/android_tests.yml +++ b/.github/workflows/android_tests.yml @@ -19,7 +19,7 @@ jobs: matrix: # test on emulators with these Android API versions. # api-level: [ 23, 25, 27, 29, 31, 33 ] # test on 6 versions, from minSdk to targetSdk - api-level: [ 30, 34 ] # test on 2 api versions that have ATD images + api-level: [ 30, 32, 34 ] # test on 3 api versions that have ATD images # target: [ default, google_apis ] # user-friendly OS images without, or with, google apps target: [ aosp_atd, google_atd ] # test-friendly OS images without, or with, google apps # profile: [ 5.1in WVGA, 10.1in WXGA ] # TODO you can also test with phones and tablets! @@ -29,6 +29,8 @@ jobs: target: default - api-level: 27 target: google_apis + - api-level: 34 + target: google_atd # Windows is unsupported. Ubuntu is slow so the emulators crash. List of installed software: # https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md runs-on: macos-latest @@ -99,11 +101,12 @@ jobs: - name: run custom tasks for additional checks run: ./gradlew checkLanguages checkFastlane - - name: install ffmpeg - run: brew install ffmpeg +# useless, since the ATD images have a black screen +# - name: install ffmpeg +# run: brew install ffmpeg - - name: check ffmpeg - run: ffmpeg -version +# - name: check ffmpeg +# run: ffmpeg -version - name: make the emulator script executable run: chmod +x github_on_emu_started.sh diff --git a/github_on_emu_started.sh b/github_on_emu_started.sh index 2a4332ab..52437611 100644 --- a/github_on_emu_started.sh +++ b/github_on_emu_started.sh @@ -67,8 +67,6 @@ function getScreenStreamFromEmu() { done } -# TODO android API 32 images have a built-in screen record feature that can make long videos, but you have to start it from the top drawer menu. Check if API 23 has it, and try to use it with ADB. Videos are saved on /sdcard/movies/ then you have to pull them with adb - # save the video stream to a file { getScreenStreamFromEmu | ffmpeg -i - -s 480x854 -loglevel error \ -nostats -hide_banner -framerate 15 -bufsize 1M emu-video.mp4 ; } &