This is an automated email from the ASF dual-hosted git repository.
menghaoran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 6e356c8be9d Refactor : update the swap script since apache does not
accept the pierotofy action (#32784)
6e356c8be9d is described below
commit 6e356c8be9d4b751ed9dad934f547a7975979478
Author: 孙念君 Nianjun Sun <[email protected]>
AuthorDate: Tue Sep 3 11:25:13 2024 +0800
Refactor : update the swap script since apache does not accept the
pierotofy action (#32784)
---
.github/workflows/nightly-check.yml | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/.github/workflows/nightly-check.yml
b/.github/workflows/nightly-check.yml
index b0102406ca4..e40ece0f869 100644
--- a/.github/workflows/nightly-check.yml
+++ b/.github/workflows/nightly-check.yml
@@ -101,9 +101,7 @@ jobs:
restore-keys: |
${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX
}}-maven-third-party-
- name: Set Swap Space
- uses: pierotofy/set-swap-space@master
- with:
- swap-size-gb: 10
+ run: size="10G" && file_swap=/swapfile_$size.img && sudo touch
$file_swap && sudo chmod 600 $file_swap && sudo fallocate -l $size /$file_swap
&& sudo mkswap /$file_swap && sudo swapon -p 20 /$file_swap
- name: Aggregate checkstyle report
run: |
export MAVEN_OPTS='-Xmx6g -Xms6g'