Using Anka Build to run your Android project’s CI/CD

Since Anka 2.5.0, Android emulators are now supported inside of the VM and this guide is no longer accurate or necessary. You can find our documentation here.

Using Anka Build to run your Android project’s CI/CD builds and tests is a relatively simple process. However, time after time, we hear the same concerns from our customers about emulators not working or having poor performance. This is understandanble as, at the time of writing this blog, we’re still working on supporting the use of the host GPU and Metal APIs inside Anka VMs. Running your emulators using CPU is possible but has limited performance.

Therefore, we’d like to show you how to run your project’s build and unit tests inside of an Anka VM, then pass the project to the host to run your emulator tests. We’ve created an example repo for you to review at

Repository Overview

  • The base of the project is from android’s testing samples repo.
  • The GitHub Action workflow file includes the commands used to run your Android build and tests both inside of the VM and out on the host.
  • The vm-watcher.bash example script helps us run a detached process on the host that waits for the VM to be deleted (happens when the job completes/fails/is canceled) and then cleans up the emulator that we also ran detached on the host.

Veertu’s Anka Build Virtualization software has come a long way since our announcement in 2017. We’ve been consistently adding the most customer-requested features and keeping our software up to date and compatible with the latest Apple macOS releases. GPU and Metal support is one of the features we’re excited to add in the future, but until then, we know this pattern of using Anka Build to run your Android project’s CI/CD will suffice.

If you’re new to Anka software, you can get started by signing up for a trial on our site:

Share this post

Unlocking Superior macOS VM Network Performance: Introducing Anka's new networking mode for Apple Silicon
Large and complex enterprises using Anka have many different demands, and we have worked to continue to develop innovative technology to meet these demands. Enterprise infrastructure hardware is often on the cutting edge, and they need advanced capabilities...
Read More
Anka Cloud Gitlab Executor
Veertu’s Anka and the new Anka Cloud Gitlab Executor Veertu’s Anka is a suite of software tools built on the macOS virtualization platform. It enables the execution of single or multi-use macOS virtual machines (VMs) in a manner similar to Docker....
Read More
Real-Time CVE Scanning of your macOS Build Systems
It’s common that an organization’s macOS build system will download thousands, sometimes tens of thousands of third-party dependencies every hour. When building and testing iOS applications, it typically downloads and installs third-party...
Read More
The ONLY Fully Automated Apple Silicon macOS VM Creation Solution
Starting in Anka 3.1 we announced that Anka is now able to fully automate the macOS installation processes, disabling SIP, and enabling VNC — all previously manual steps users had to perform inside o the VM. At the time of writing this article,...
Read More
Scripting macOS UI User Actions With Anka Click
Starting in Anka 3.2, we’ve introduced a solution for scripting macOS UI user actions. You may ask, “Why would I want to do that?”. Well, often macOS configuration and applications do not have a CLI allowing you to perform certain actions...
Read More
Real-time, continuous scan of file downloads on macOS for security vulnerabilities
Today, we are announcing the Beta availability of the Mac Scan solution. Mac Scan software runs on macOS systems (bare metal, virtual, EC2 Mac) and scans downloads in real time for security vulnerabilities. There are multiple scenarios why you would...
Read More
Screen Shot 2022-10-17 at 10.13
Anka 3.1- Fully automated VM macOS installation & The Behavior-Driven macOS UI Automation Framework
We are very happy to announce the General Availability of Anka 3.1 for Apple Silicon / ARM macs. In this release, we are taking our approach to iOS CI automation one step further by introducing a Behavior-Driven macOS UI Automation Framework in Anka,...
Read More
Migrating from Anka on Intel to Anka on M1 Mac for iOS CI
In this blog, we will cover the key topics for migrating from Anka on Intel to Anka on M1/M2 Macs. Anka is an IaaC solution from Veertu to set up an agile Container like CI for iOS CI using macOS VMs. Anka for Intel uses Apple’s Hypervisor.Framework virtualization...
Read More
World's first Security Vulnerability scanner for EC2 Mac AMIs
We are excited to announce the General Availability of the world’s first security vulnerability scanner for EC2 Mac AMIs. EC2 Mac AMI Scan scans Intel and Apple Silicon macOS EC2 AMIs, detects security vulnerabilities in third-party packages, dependencies,...
Read More
It's time to migrate your iOS CI from ESXi Virtual Mac Infrastructure to native macOS Virtualization
When VMWare ESXi started officially supporting Apple macOS Virtualization on Mac hardware in late 2012, it opened the doors for the possibility of iOS development to move to a Linux-like, agile, scalable CI infrastructure. Soon enough, many iOS enterprise...
Read More