Skip to content

Commit

Permalink
[INLONG-11249][CI] fix the ci fail due to lack of disk space
Browse files Browse the repository at this point in the history
  • Loading branch information
Aloys Zhang committed Sep 29, 2024
1 parent e0d7f8d commit 31aa238
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/ci_ut.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,17 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Remove unnecessary packages
run: |
echo "=== Before pruning ==="
df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
echo
echo "=== After pruning ==="
df -h
- name: Set up JDK
uses: actions/setup-java@v4
with:
Expand All @@ -84,16 +95,6 @@ jobs:
sudo mkswap /swapfile
sudo swapon /swapfile
- name: Remove unnecessary packages
run: |
echo "=== Before pruning ==="
df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
echo
echo "=== After pruning ==="
df -h
- name: Build with Maven
run: mvn --batch-mode --update-snapshots -e -V clean install -DskipTests -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -Daether.connector.http.reuseConnections=false -Daether.connector.requestTimeout=60000
Expand Down

0 comments on commit 31aa238

Please sign in to comment.