ReactiveCircus / android-emulator-runner

A GitHub Action for installing, configuring and running hardware-accelerated Android Emulators on macOS virtual machines.
Apache License 2.0
972 stars 192 forks source link

How to update emulator to canary #312

Open kopax-polyconseil opened 1 year ago

kopax-polyconseil commented 1 year ago

With the current installation, it is not possible to take screenshots on macos-12 github action runner..

By updating to canary, it is proven that it will work: https://issuetracker.google.com/issues/259111479#comment3

Exemple: https://github.com/actions/runner-images/issues/6814#issuecomment-1419003014

How can I update the emulator to canary? I can see from issue tracker there are some file to download, how do you recommend to replicate this in ReactiveCircus/android-emulator-runner ?

j4velin commented 1 year ago

There is a configuration option for that. I can confirm that taking screenshots works with:

      - name: Run test
        uses: reactivecircus/android-emulator-runner@50986b1464923454c95e261820bc626f38490ec0
        with:
          api-level: 29
          channel: canary
          profile: "Nexus S"
          emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none
          disable-animations: true
          script: ./main.py >> $GITHUB_STEP_SUMMARY