build-reconfig3
Some checks failed
CI / test (push) Failing after 21m52s
Deploy / deploy (push) Has been skipped
CI / lint (push) Successful in 22s

This commit is contained in:
2025-09-02 11:04:27 +03:00
parent 7497b8c426
commit 8483938220

View File

@@ -41,25 +41,28 @@ jobs:
- name: Build with extreme memory optimization - name: Build with extreme memory optimization
run: | run: |
# Create additional swap for memory-intensive compilation # Check available memory
sudo fallocate -l 4G /swapfile || sudo dd if=/dev/zero of=/swapfile bs=1M count=4096 echo "Available memory:"
sudo chmod 600 /swapfile free -h || echo "Memory info not available"
sudo mkswap /swapfile
sudo swapon /swapfile
# Apply memory optimizations for CI environment # Apply extreme memory optimizations for CI environment
export CARGO_NET_GIT_FETCH_WITH_CLI=true export CARGO_NET_GIT_FETCH_WITH_CLI=true
export CARGO_NET_RETRY=3 export CARGO_NET_RETRY=2
export CARGO_NET_TIMEOUT=60 export CARGO_NET_TIMEOUT=30
export CARGO_HTTP_TIMEOUT=60 export CARGO_HTTP_TIMEOUT=30
export RUSTC_FORCE_INCREMENTAL=0 export RUSTC_FORCE_INCREMENTAL=0
# Build with all optimizations # Extreme memory conservation
cargo build --verbose export CARGO_BUILD_JOBS=1
export CARGO_TARGET_DIR=$PWD/target
export RUSTFLAGS="-C opt-level=s -C codegen-units=1 -C panic=abort -C strip=symbols -C link-arg=-Wl,--no-keep-memory"
# Clean up swap # Clear any existing artifacts to save space
sudo swapoff /swapfile || true cargo clean || true
sudo rm -f /swapfile || true
# Try building with release profile first (may use less memory)
echo "Starting build with release optimizations..."
cargo build --verbose --release
- name: Install cargo-llvm-cov - name: Install cargo-llvm-cov
run: | run: |