77 pull_request :
88 branches : [ "main" ]
99 workflow_dispatch :
10-
10+ inputs :
11+ rebuildDiskCache :
12+ description : " Rebuild disk cache"
13+ type : boolean
14+ default : false
15+ concurrency :
16+ group : ${{ github.workflow }}-${{ github.ref }}
17+ cancel-in-progress : true
1118jobs :
1219 unit_test :
1320 runs-on : ubuntu-latest
1421 container :
1522 image : ghcr.io/alibaba/tair-kvcache-kvcm-dev:2026_02_03_13_26_feea140
23+ volumes :
24+ - /:/host_root/
1625 steps :
26+ # https://github.com/actions/runner-images/issues/2840
27+ # https://github.com/korjavin/haskel-web1/commit/3bd3d2a74c41418ec31a8bec34dcd9c100f4e22d
28+ - name : Free up disk space
29+ run : |
30+ echo "Disk space before cleanup:"
31+ df -h
32+ sudo rm -rf /host_root/usr/share/dotnet
33+ sudo rm -rf /host_root/usr/local/lib/android
34+ sudo rm -rf /host_root/opt/ghc
35+ echo "Disk space after cleanup:"
36+ df -h
1737 - uses : actions/checkout@v4
1838 - uses : bazel-contrib/setup-bazel@0.18.0
1939 with :
2040 bazelisk-cache : true
2141 disk-cache : ${{ runner.os }}-${{ github.workflow }}-unit_test
2242 repository-cache : true
2343 cache-save : ${{ github.event_name != 'pull_request' }}
44+ - name : clean_disk_cache
45+ if : ${{ inputs.rebuildDiskCache }}
46+ run : |
47+ rm -rf ~/.cache/bazel-disk
2448 - name : bazel_test
2549 run : |
2650 set -x
@@ -46,14 +70,31 @@ jobs:
4670 runs-on : ubuntu-latest
4771 container :
4872 image : ghcr.io/alibaba/tair-kvcache-kvcm-dev:2026_02_03_13_26_feea140
73+ volumes :
74+ - /:/host_root/
4975 steps :
76+ # https://github.com/actions/runner-images/issues/2840
77+ # https://github.com/korjavin/haskel-web1/commit/3bd3d2a74c41418ec31a8bec34dcd9c100f4e22d
78+ - name : Free up disk space
79+ run : |
80+ echo "Disk space before cleanup:"
81+ df -h
82+ sudo rm -rf /host_root/usr/share/dotnet
83+ sudo rm -rf /host_root/usr/local/lib/android
84+ sudo rm -rf /host_root/opt/ghc
85+ echo "Disk space after cleanup:"
86+ df -h
5087 - uses : actions/checkout@v4
5188 - uses : bazel-contrib/setup-bazel@0.18.0
5289 with :
5390 bazelisk-cache : true
5491 disk-cache : ${{ runner.os }}-${{ github.workflow }}-integration_test
5592 repository-cache : true
5693 cache-save : ${{ github.event_name != 'pull_request' }}
94+ - name : clean_disk_cache
95+ if : ${{ inputs.rebuildDiskCache }}
96+ run : |
97+ rm -rf ~/.cache/bazel-disk
5798 - name : bazel_test
5899 run : |
59100 set -x
0 commit comments