Prerequisites
Before integrating the Vega SDK into your CI pipeline, make sure that your build environment meets the following requirements. Pay particular attention to selecting the correct build host configuration, as choosing the wrong one can lead to installation or runtime errors.System requirements
The following section lists the supported host configurations for building Vega apps in CI.Host configurations
- Operating system
- Ubuntu 20.04, 22.04, 24.04, or 26.04
- x86_64
- macOS X
- arm64 (M-series) — recommended
- x86_64 (Intel)
- Ubuntu 20.04, 22.04, 24.04, or 26.04
Installation process
Installing the Vega SDK in a CI environment requires a fully automated approach. Unlike developer workstations where interactive installation is common, CI environments can’t rely on prompts. The following sections guide you through this process.Basic installation
-
Edit the installation command to disable installer prompts that can interrupt an automated installation.
Run
echo $NONINTERACTIVEto confirm it outputstrue. -
Configure the desired installation flags.
On success, the installer prints a confirmation message and exits with code
0. Runvega -vto confirm the SDK is installed and on the expected version before continuing.
Environment variable configuration
Use the following environment variables to control the installer script.Docker integration
Docker provides a consistent and isolated environment for building applications with the Vega SDK. The following example demonstrates how to create a build environment that includes all necessary dependencies and configurations. This approach can be adapted for various CI solutions that support container-based builds.Example Dockerfile
Validate OS version compatibility in your pipeline
To stop a pipeline before it builds an incompatible app, run vega project doctor as a build step. Run it aftervega project install --fix and your package manager, and before the build.
vega project doctor returns a non-zero exit code when a check fails, so the pipeline step fails and the build doesn’t run. Replace npm install and the build command with the package manager and build script your project uses. For the checks that doctor runs, see vega project doctor.
Best practices
Version control
- Always specify exact SDK versions in your CI configuration using
VEGA_SDK_VERSION. - Use version pinning for stability and reproducible builds.
- Document version updates in your repository changelog.
Performance optimization
- Set
SKIP_VVD_INSTALL=trueto reduce installation size when device emulation isn’t needed. - Use caching strategies for downloaded artifacts.
- Consider multi-stage Docker builds to keep final image sizes small.
Security
- Always use HTTPS download URLs.
- Implement proper access controls for private npm registries.
- Regularly audit your CI/CD pipeline configuration.
Troubleshooting
Installation failures
- Verify network connectivity to SDK repositories.
- Ensure sufficient disk space for the SDK installation.
- Check that environment variables are set correctly.
- Confirm you selected the correct build host configuration for your build host on the installation page.
Build errors
- Verify SDK version compatibility with your app.
- Check for missing dependencies in your build environment.
- Review build logs for specific error messages.
- Confirm you selected the correct build host configuration during installation.
- Confirm your
manifest.tomlincludes the[os.version]section. Builds fail without it. Runvega project update-manifest --os-min 2.0 --os-version 2.0in your project before building, or add the section to your committedmanifest.toml.

