Skip to content

Commit

Permalink
Try fix github action
Browse files Browse the repository at this point in the history
  • Loading branch information
ibireme committed Jan 25, 2025
1 parent d82f316 commit 82d6eea
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
'
Expand Down

0 comments on commit 82d6eea

Please sign in to comment.