build-reconfig2
Some checks failed
Deploy / deploy (push) Has been skipped
CI / test (push) Failing after 20s
CI / lint (push) Successful in 7m1s

This commit is contained in:
2025-09-02 10:46:51 +03:00
parent 5329752735
commit 7497b8c426
7 changed files with 626 additions and 10 deletions

View File

@@ -39,16 +39,27 @@ jobs:
restore-keys: |
${{ runner.os }}-cargo-
- name: Build with memory optimization
- name: Build with extreme memory optimization
run: |
# Create additional swap for memory-intensive compilation
sudo fallocate -l 4G /swapfile || sudo dd if=/dev/zero of=/swapfile bs=1M count=4096
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
# Apply memory optimizations for CI environment
export CARGO_NET_GIT_FETCH_WITH_CLI=true
export CARGO_NET_RETRY=3
export CARGO_NET_TIMEOUT=60
export CARGO_HTTP_TIMEOUT=60
export RUSTC_FORCE_INCREMENTAL=0
# Build with our optimized configuration
# Build with all optimizations
cargo build --verbose
# Clean up swap
sudo swapoff /swapfile || true
sudo rm -f /swapfile || true
- name: Install cargo-llvm-cov
run: |