openvinotoolkit/openvino

[Good First Issue]: Introduce testing on Android in GitHub Actions

Open

#26.991 aperta il 10 ott 2024

Vedi su GitHub
 (17 commenti) (1 reazione) (1 assegnatario)C++ (3229 fork)auto 404
github_actionsgood first issueno_stale

Metriche repository

Star
 (10.286 star)
Metriche merge PR
 (Merge medio 14g 3h) (305 PR mergiate in 30 g)

Descrizione

Context

At the moment, we have two GitHub Actions workflows in which we cross-compile OpenVINO artefacts using Ubuntu 22 for Android x64 and arm64.

We would like to enable testing of the produced artefacts on an Android emulator in GitHub Actions.

What needs to be done?

The idea is to implement test jobs similarly to existing test jobs in other workflows:

  1. Enable building of tests via ENABLE_TESTS=ON in the cmake configuration step: https://github.com/openvinotoolkit/openvino/blob/3f70084d336039e93715443699610d94065d5389/.github/workflows/android_x64.yml#L124
  2. Pack and upload build and test artefacts
  3. Add a test job that utilises an Android emulator with the build and test artefacts from the previous step
  4. Run any of the produced test binaries within the Android emulator using the ADB tool

Many Android emulators are available:

Note: the list is not extensive and if you find any other ways to run an Android emulator in GitHub Actions, please do not hesitate to use it.

In OpenVINO, we use pre-built Docker images for building and testing so it is recommended that you use a Docker image with an Android emulator for testing.

Refer to the OpenVINO GitHub Actions documentation for more details on the GitHub Actions setup.

Example Pull Requests

No response

Resources

Contact points

If you have any questions, please contact @akashchi and @mryzhov.

If you create a Pull Request, please add @akashchi and @mryzhov as reviewers and assignees.

Ticket

149906

Guida contributor