Skip to content

Commit 2ccce91

Browse files
author
codethinki
committed
further analyzing ci machine file structure and also turned off module scanning
1 parent ab701ea commit 2ccce91

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,17 @@ jobs:
3131
matrix:
3232
compiler: [gcc]
3333
steps:
34-
- name: Analyze Disk Usage
34+
- name: Analyze Disk Usage (Detailed)
3535
run: |
3636
df -h
37-
echo "--- Large Directories (Depth 2) ---"
38-
sudo du -h --max-depth=2 --exclude=/proc --exclude=/sys --exclude=/dev /usr /opt /var | sort -rh | head -n 20
39-
37+
echo "--- Top 10 Largest Directories in /usr/local ---"
38+
sudo du -h --max-depth=2 /usr/local | sort -rh | head -n 10
39+
echo "--- Top 10 Largest Directories in /opt ---"
40+
sudo du -h --max-depth=2 /opt | sort -rh | head -n 10
41+
echo "--- Top 10 Directories by File Count (Slow to Delete) ---"
42+
# Find directories with most files (approximate check on top usage dirs)
43+
sudo find /usr/local /opt -maxdepth 3 -type d -print0 | xargs -0 -I{} sh -c 'echo "$(find "{}" -maxdepth 1 | wc -l) {}"' | sort -rn | head -n 10
44+
4045
# - name: Free Disk Space
4146
# run: |
4247
# sudo rm -rf /usr/share/dotnet

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
2323
set(CMAKE_CUDA_STANDARD 14)
2424
set(CMAKE_CUDA_STANDARD_REQUIRED ON)
2525

26+
# no modules in this library
27+
set(CMAKE_CXX_SCAN_FOR_MODULES OFF)
28+
2629
# Default directories for installation
2730
set(FL_INSTALL_INC_DIR "include" CACHE PATH "Install path for headers")
2831
set(FL_INSTALL_INC_DIR_HEADER_LOC ${FL_INSTALL_INC_DIR}/flashlight)

0 commit comments

Comments
 (0)