From 6e356c8be9d4b751ed9dad934f547a7975979478 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=BF=B5=E5=90=9B=20Nianjun=20Sun?= Date: Tue, 3 Sep 2024 11:25:13 +0800 Subject: [PATCH] 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 b0102406ca494..e40ece0f86980 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'