Files
uLib/.agents/skills/micromamba_build.md
2026-04-08 07:31:47 +00:00

1.2 KiB

Skill: Build uLib with Micromamba

This skill provides instructions for building the uLib project using the micromamba environment.

Context

  • Environment: micromamba uLib
  • Output Directory: build
  • CPU Usage: All available cores

Instructions

  1. Environment Setup: Ensure micromamba is properly initialized and the uLib environment is active.

    export MAMBA_EXE="/home/share/micromamba/bin/micromamba"
    export MAMBA_ROOT_PREFIX="/home/share/micromamba"
    eval "$(/home/share/micromamba/bin/micromamba shell hook --shell bash)"
    micromamba activate uLib
    
  2. Full Rebuild (if needed): If the build directory does not exist or a full reconfiguration is required:

    conan profile detect --force
    conan install . --output-folder=build --build=missing
    cmake --preset conan-release
    
  3. Incremental Build: Run the build command from the root directory, pointing to the build folder and using all cores.

    cmake --build build -j$(nproc)
    
  4. Specific Target Build: To build a specific target (e.g., gcompose):

    cmake --build build --target gcompose -j$(nproc)