Skip to content

Commit cd530df

Browse files
committed
fix(ci): simplify approach - use single-threaded release builds
- Remove slow disk cleanup step that was taking too long - Use cargo test --release --jobs 1 for minimal resource usage - Set CARGO_BUILD_JOBS=1 to limit parallel compilation - Focus on core solution: single-threaded release builds This should be faster and more reliable than disk cleanup.
1 parent ac6f1e0 commit cd530df

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,25 +35,14 @@ jobs:
3535
run: |
3636
sudo apt-get update
3737
sudo apt-get install -y postgresql-client
38-
- name: Free disk space
39-
run: |
40-
# Free up disk space before building
41-
sudo rm -rf /usr/share/dotnet
42-
sudo rm -rf /usr/local/lib/android
43-
sudo rm -rf /opt/ghc
44-
sudo rm -rf /opt/hostedtoolcache/CodeQL
45-
sudo docker image prune --all --force
46-
df -h
4738
- name: Build and test
4839
run: |
49-
# Set minimal profile for faster compilation and less disk usage
50-
export CARGO_PROFILE_DEV_DEBUG=0
51-
export CARGO_PROFILE_TEST_DEBUG=0
52-
# Build and test in one step to avoid duplicate compilation
53-
cargo test --release --verbose
40+
# Build and test in release mode to save disk space
41+
# Use fewer parallel jobs to reduce memory pressure
42+
cargo test --release --verbose --jobs 1
5443
env:
55-
# Reduce parallel jobs to save memory and disk space
56-
CARGO_BUILD_JOBS: 2
44+
# Limit parallel compilation to reduce disk usage
45+
CARGO_BUILD_JOBS: 1
5746
- name: Install bc (for test timing calculations)
5847
run: sudo apt-get install -y bc
5948
- name: Run integration tests - TCP with SSL

0 commit comments

Comments
 (0)