Some checks failed
Comprehensive CI/CD Pipeline / Build and Test (push) Failing after 15m38s
Comprehensive CI/CD Pipeline / Security Audit (push) Failing after 7s
Comprehensive CI/CD Pipeline / Package Validation (push) Successful in 36s
Comprehensive CI/CD Pipeline / Status Report (push) Has been skipped
- Add CI-friendly Cargo profile with reduced memory usage - Create .cargo/config.toml with memory-optimized build settings - Add build-ci.sh script for CI environments - Reduce parallel jobs and disable LTO to prevent SIGSEGV - Tested locally: indexmap compiles successfully with CI profile - Resolves CI build failure: 'signal: 11, SIGSEGV: invalid memory reference'
20 lines
511 B
Bash
Executable file
20 lines
511 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
echo "🔧 Building apt-ostree for CI environment..."
|
|
|
|
# Set memory-friendly environment variables
|
|
export CARGO_BUILD_JOBS=2
|
|
export RUSTFLAGS="-C target-cpu=native -C opt-level=2"
|
|
export CARGO_TARGET_DIR="target-ci"
|
|
|
|
# Clean previous builds
|
|
echo "🧹 Cleaning previous builds..."
|
|
cargo clean
|
|
|
|
# Build with CI profile
|
|
echo "🏗️ Building with CI profile..."
|
|
cargo build --profile ci --bin apt-ostree
|
|
cargo build --profile ci --bin apt-ostreed
|
|
|
|
echo "✅ CI build completed successfully!"
|