1.3 KiB
1.3 KiB
trigger
| trigger |
|---|
| always_on |
Rule: Build uLib with Micromamba
This rule provides instructions for building the uLib project using the micromamba environment.
Context
- Environment: micromamba
uLib - Output Directory:
build - CPU Usage: All available cores
Instructions
-
Environment Setup: Ensure micromamba is properly initialized and the
uLibenvironment is active.export MAMBA_EXE="/home/share/micromamba/bin/micromamba" export MAMBA_ROOT_PREFIX="/home/share/micromamba" export PRESET="clang-debug" eval "$(${MAMBA_EXE} shell hook --shell bash)" micromamba activate uLib -
Full Rebuild (if needed): If the
builddirectory does not exist or a full reconfiguration is required:conan install . --output-folder=build/${PRESET} --build=missing --profile=fast cmake --preset ${PRESET} cmake --build build/${PRESET} -j$(nproc) -
Incremental Build: Run the build command from the root directory, pointing to the
buildfolder and using all cores.cmake --build build/${PRESET} -j$(nproc) -
Specific Target Build - gcompose: To build a specific target (e.g., gcompose):
cmake --build build/${PRESET} --target gcompose -j$(nproc)