@@ -934,99 +934,6 @@ jobs:
934934 qdomyos_logcat.txt
935935 if-no-files-found : warn
936936
937- android-translation-screenshots :
938- runs-on : ubuntu-latest
939- needs : android-build
940- if : github.event_name == 'workflow_dispatch'
941- strategy :
942- fail-fast : false
943- matrix :
944- include :
945- - { locale: "en_US", language: "en", country: "US", label: "en-US" }
946- - { locale: "it_IT", language: "it", country: "IT", label: "it-IT" }
947- - { locale: "de_DE", language: "de", country: "DE", label: "de-DE" }
948- - { locale: "fr_FR", language: "fr", country: "FR", label: "fr-FR" }
949- - { locale: "es_ES", language: "es", country: "ES", label: "es-ES" }
950- - { locale: "ja_JP", language: "ja", country: "JP", label: "ja-JP" }
951- - { locale: "ar_SA", language: "ar", country: "SA", label: "ar-SA" }
952-
953- steps :
954- - name : Checkout code
955- uses : actions/checkout@v4
956-
957- - name : Download APK Artifact
958- uses : actions/download-artifact@v4
959- with :
960- name : fdroid-android-trial
961- path : apk-debug
962-
963- - name : Setup Java for Android Emulator
964- uses : actions/setup-java@v3
965- with :
966- distribution : ' temurin'
967- java-version : ' 17'
968-
969- - name : Run translation screenshot capture (${{ matrix.label }})
970- uses : ReactiveCircus/android-emulator-runner@v2
971- with :
972- api-level : 35
973- target : google_apis
974- arch : x86_64
975- profile : Nexus 6
976- disable-animations : true
977- script : |
978- set -euxo pipefail
979-
980- wait_for_boot() {
981- adb wait-for-device
982- until adb shell getprop sys.boot_completed 2>/dev/null | tr -d '\r' | grep -q '^1$'; do
983- sleep 5
984- done
985- sleep 10
986- }
987-
988- set_android_locale() {
989- adb shell setprop persist.sys.locale ${{ matrix.language }}-${{ matrix.country }} || true
990- adb shell setprop persist.sys.language ${{ matrix.language }} || true
991- adb shell setprop persist.sys.country ${{ matrix.country }} || true
992- adb shell stop
993- adb shell start
994- wait_for_boot
995- }
996-
997- adb install apk-debug/android-debug.apk
998- wait_for_boot
999- set_android_locale
1000-
1001- adb shell getprop persist.sys.locale > locale-${{ matrix.label }}.txt
1002- adb logcat -c
1003-
1004- adb shell am force-stop org.cagnulen.qdomyoszwift || true
1005- adb shell am start -n org.cagnulen.qdomyoszwift/org.cagnulen.qdomyoszwift.CustomQtActivity --es startup_screen home
1006- sleep 90
1007- adb shell screencap -p /sdcard/screenshot-home-${{ matrix.label }}.png
1008- adb pull /sdcard/screenshot-home-${{ matrix.label }}.png screenshot-home-${{ matrix.label }}.png
1009-
1010- adb shell am force-stop org.cagnulen.qdomyoszwift || true
1011- adb shell am start -n org.cagnulen.qdomyoszwift/org.cagnulen.qdomyoszwift.CustomQtActivity --es startup_screen settings
1012- sleep 90
1013- adb shell screencap -p /sdcard/screenshot-settings-${{ matrix.label }}.png
1014- adb pull /sdcard/screenshot-settings-${{ matrix.label }}.png screenshot-settings-${{ matrix.label }}.png
1015-
1016- adb logcat -d > logcat-${{ matrix.label }}.txt
1017-
1018- - name : Upload translation screenshot artifact (${{ matrix.label }})
1019- if : always()
1020- uses : actions/upload-artifact@v4
1021- with :
1022- name : android-translation-screenshot-${{ matrix.label }}
1023- path : |
1024- screenshot-home-${{ matrix.label }}.png
1025- screenshot-settings-${{ matrix.label }}.png
1026- logcat-${{ matrix.label }}.txt
1027- locale-${{ matrix.label }}.txt
1028- if-no-files-found : warn
1029-
1030937 ios-build :
1031938 # The type of runner that the job will run on
1032939 runs-on : macos-14
0 commit comments