3939 outputs :
4040 docs_only : ${{ steps.result.outputs.docs_only }}
4141 steps :
42- - uses : actions/checkout@v4
42+ - uses : actions/checkout@v6
4343 - uses : dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
4444 id : changes
4545 with :
5656 env :
5757 FORCE_COLOR : 1
5858 steps :
59- - uses : actions/checkout@v4
59+ - uses : actions/checkout@v6
6060 - name : Check typos
61- uses : crate-ci/typos@v1.43.1
61+ uses : crate-ci/typos@v1.45.0
6262 with :
6363 config : .github/config/typos.toml
6464 - uses : apache/skywalking-eyes/header@v0.7.0
@@ -71,13 +71,15 @@ jobs:
7171 if : ${{ needs.precondition.outputs.docs_only != 'true' }}
7272 runs-on : ubuntu-24.04
7373 steps :
74- - uses : actions/checkout@v4
75- - uses : actions/setup-go@v5
74+ - uses : actions/checkout@v6
75+ - uses : actions/setup-go@v6
7676 with :
7777 go-version-file : ' tests/gocase/go.mod'
7878 cache : false
7979 - name : Prepare Dependencies
8080 run : |
81+ wget --max-redirect=0 -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
82+ echo "deb https://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-18 main" | sudo tee /etc/apt/sources.list.d/llvm.list
8183 sudo apt update
8284 sudo apt install -y clang-format-18 clang-tidy-18
8385 - name : Check with clang-format
9698 git diff -p > clang-format.patch
9799 cat clang-format.patch
98100 - name : Upload format patch
99- uses : actions/upload-artifact@v4
101+ uses : actions/upload-artifact@v7
100102 if : always() && steps.check-format.outcome != 'success'
101103 with :
102104 path : clang-format.patch
@@ -261,7 +263,7 @@ jobs:
261263 # Cmake 4.0 has the compatibility issue, just pin it to 3.31.
262264 # See https://github.com/actions/runner-images/issues/11926.
263265 run : |
264- pipx install --force cmake== 3.31
266+ pipx install --force ' cmake>= 3.31,<4'
265267
266268 - name : Setup Linux
267269 if : ${{ startsWith(matrix.os, 'ubuntu') || matrix.arm_linux }}
@@ -291,14 +293,14 @@ jobs:
291293
292294 - name : Cache redis
293295 id : cache-redis
294- uses : actions/cache@v4
296+ uses : actions/cache@v5
295297 with :
296298 path : |
297299 ~/local/bin/redis-cli
298300 key : ${{ runner.os }}-${{ runner.arch }}-redis-cli
299301 - name : Cache redis server
300302 id : cache-redis-server
301- uses : actions/cache@v4
303+ uses : actions/cache@v5
302304 with :
303305 path : |
304306 ~/local/bin/redis-server
@@ -312,14 +314,14 @@ jobs:
312314 pushd redis-6.2.14 && BUILD_TLS=yes make -j$NPROC redis-cli && mv src/redis-cli $HOME/local/bin/ && popd
313315 pushd redis-6.2.14 && BUILD_TLS=yes make -j$NPROC redis-server && mv src/redis-server $HOME/local/bin/ && popd
314316
315- - uses : actions/checkout@v4
317+ - uses : actions/checkout@v6
316318 with :
317319 fetch-depth : 0
318- - uses : actions/setup-python@v5
320+ - uses : actions/setup-python@v6
319321 if : ${{ !matrix.arm_linux }}
320322 with :
321323 python-version : 3.x
322- - uses : actions/setup-go@v5
324+ - uses : actions/setup-go@v6
323325 with :
324326 go-version-file : ' tests/gocase/go.mod'
325327 cache : false
@@ -329,7 +331,7 @@ jobs:
329331 if : ${{ matrix.sonarcloud }}
330332
331333 - name : Install Build Wrapper
332- uses : SonarSource/sonarqube-scan-action/install-build-wrapper@v6.0.0
334+ uses : SonarSource/sonarqube-scan-action/install-build-wrapper@a31c9398be7ace6bbfaf30c0bd5d415f843d45e9
333335 if : ${{ matrix.sonarcloud }}
334336
335337 - name : Build Kvrocks
@@ -425,7 +427,7 @@ jobs:
425427 exit 1
426428 fi
427429
428- - uses : actions/upload-artifact@v4
430+ - uses : actions/upload-artifact@v7
429431 if : ${{ failure() && startsWith(matrix.os, 'ubuntu') }}
430432 with :
431433 name : kvrocks-coredumps-${{ matrix.name }}
@@ -447,7 +449,7 @@ jobs:
447449
448450 - name : Upload SonarCloud data
449451 if : ${{ matrix.sonarcloud }}
450- uses : actions/upload-artifact@v4
452+ uses : actions/upload-artifact@v7
451453 with :
452454 name : sonarcloud-data
453455 path : |
@@ -463,10 +465,10 @@ jobs:
463465 matrix :
464466 os : [ubuntu-24.04, ubuntu-24.04-arm]
465467 steps :
466- - uses : actions/checkout@v4
468+ - uses : actions/checkout@v6
467469 - name : Get core numbers
468470 run : echo "NPROC=$(nproc)" >> $GITHUB_ENV
469- - uses : docker/build-push-action@v6
471+ - uses : docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294
470472 with :
471473 context : .
472474 build-args : MORE_BUILD_ARGS=-j${{ env.NPROC }}
@@ -591,15 +593,15 @@ jobs:
591593
592594 - name : Cache redis
593595 id : cache-redis
594- uses : actions/cache@v4
596+ uses : actions/cache@v5
595597 with :
596598 path : |
597599 ~/local/bin/redis-cli
598600 key : ${{ matrix.image }}-redis-cli
599601
600602 - name : Cache redis server
601603 id : cache-redis-server
602- uses : actions/cache@v4
604+ uses : actions/cache@v5
603605 with :
604606 path : |
605607 ~/local/bin/redis-server
@@ -615,8 +617,8 @@ jobs:
615617 pushd redis-6.2.14 && USE_JEMALLOC=no make -j$NPROC redis-cli && mv src/redis-cli $HOME/local/bin/ && popd
616618 pushd redis-6.2.14 && USE_JEMALLOC=no make -j$NPROC redis-server && mv src/redis-server $HOME/local/bin/ && popd
617619
618- - uses : actions/checkout@v4
619- - uses : actions/setup-go@v5
620+ - uses : actions/checkout@v6
621+ - uses : actions/setup-go@v6
620622 if : ${{ !startsWith(matrix.image, 'opensuse') }}
621623 with :
622624 go-version-file : ' tests/gocase/go.mod'
@@ -676,7 +678,8 @@ jobs:
676678 if : ${{ needs.precondition.outputs.docs_only != 'true' }}
677679 run : |
678680 if [[ ! ( \
679- "${{ needs.build-and-test.result }}" == "success" \
681+ "${{ needs.check-and-lint.result }}" == "success" \
682+ && "${{ needs.build-and-test.result }}" == "success" \
680683 && "${{ needs.build-and-test-in-container.result }}" == "success" \
681684 && "${{ needs.check-docker.result }}" == "success" \
682685 ) ]]; then
0 commit comments