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 platform for your build host, as choosing the wrong platform can lead to installation or runtime errors.System requirements
Host configurations
- Operating system
- Ubuntu 20.04, 22.04, or 24.04
- x86_64
- Mac OS X
- arm64 (M-series) — recommended
- x86_64 (Intel)
- Ubuntu 20.04, 22.04, or 24.04
Installation process
The Vega SDK installation process needs special consideration when implementing it in a CI environment. Unlike developer workstations where interactive installation is common, CI environments require a fully automated approach. The following sections guide you through this process.Basic installation
-
Edit the installation command to disable installer prompts that can interrupt an automated installation.
-
Configure the desired installation flags.
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
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=truewhen device emulation isn’t needed—it significantly reduces installation size. - 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 platform 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 the correct platform was selected during installation.
- Confirm your
manifest.tomlincludes the[os.version]section. Starting with SDK 0.24, builds fail without it. Runvega project update-manifest --os-min 1.2 --os-version 1.2in your project before building, or add the section to your committedmanifest.toml.

