diff --git a/.github/workflows/cmake-build.yml b/.github/workflows/cmake-build.yml
index 97e4929..20df282 100644
--- a/.github/workflows/cmake-build.yml
+++ b/.github/workflows/cmake-build.yml
@@ -39,7 +39,7 @@ jobs:
 
 
       - name: Archive artifact
-        uses: actions/upload-artifact@v2
+        uses: actions/upload-artifact@v4
         with:
           name: ${{ matrix.os }}-build
           path: build