From 82d6eea3a399140dd44e56760ed139908080c382 Mon Sep 17 00:00:00 2001 From: ibireme Date: Sat, 25 Jan 2025 21:15:05 +0800 Subject: [PATCH] Try fix github action --- .github/workflows/cmake.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 280c18c..d14c0e2 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -93,6 +93,11 @@ jobs: - name: CMake and CTest run: | + # clear cache + sudo sync + sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches' + + # run docker docker run --platform linux/${{ matrix.plat }} -v "$PWD:/yyjson" ${{ matrix.arch }}/ubuntu bash -e -c ' FORCE_COLOR=1 CLICOLOR_FORCE=1 @@ -101,7 +106,9 @@ jobs: mkdir build cd build cmake ../yyjson -DYYJSON_BUILD_TESTS=ON - cmake --build . --config Release + sync + echo 3 > /proc/sys/vm/drop_caches + cmake --build . --config Release -j1 ctest -C Release --output-on-failure '