This is an automated email from the ASF dual-hosted git repository.

szaszm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git

commit d44664ee5667375d90a74d567f2b2d182fe9eb1f
Author: Martin Zink <[email protected]>
AuthorDate: Mon Apr 13 20:21:28 2026 +0200

    MINIFICPP-2754 Update deprecated CI actions
    
    Closes #2142
    
    Signed-off-by: Marton Szasz <[email protected]>
---
 .github/workflows/ci.yml                       | 79 +++++++++++++-------------
 .github/workflows/clear-actions-cache.yml      |  2 +-
 .github/workflows/compiler-support.yml         |  4 +-
 .github/workflows/create-release-artifacts.yml |  6 +-
 .github/workflows/memcheck_ci.yml              |  6 +-
 .github/workflows/verify-package.yml           | 11 ++--
 6 files changed, 52 insertions(+), 56 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 251ed4197..086794bf3 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -9,7 +9,6 @@ env:
   DOCKER_CMAKE_FLAGS: -DDOCKER_VERIFY_THREAD=3 -DUSE_SHARED_LIBS= 
-DSTRICT_GSL_CHECKS=AUDIT -DCI_BUILD=ON -DENABLE_AWS=ON -DENABLE_KAFKA=ON 
-DENABLE_MQTT=ON -DENABLE_AZURE=ON -DENABLE_SQL=ON \
     -DENABLE_SPLUNK=ON -DENABLE_GCP=ON -DENABLE_OPC=ON 
-DENABLE_PYTHON_SCRIPTING=ON -DENABLE_LUA_SCRIPTING=ON -DENABLE_KUBERNETES=ON 
-DENABLE_TEST_PROCESSORS=ON -DENABLE_PROMETHEUS=ON \
     -DENABLE_ELASTICSEARCH=ON -DENABLE_GRAFANA_LOKI=ON -DENABLE_COUCHBASE=ON 
-DENABLE_LLAMACPP=ON -DDOCKER_BUILD_ONLY=ON -DMINIFI_PERFORMANCE_TESTS=ON
-  SCCACHE_GHA_ENABLE: true
   CCACHE_DIR: ${{ GITHUB.WORKSPACE }}/.ccache
 jobs:
   macos_xcode:
@@ -64,9 +63,9 @@ jobs:
         -DMINIFI_PERFORMANCE_TESTS=ON
     steps:
       - id: checkout
-        uses: actions/checkout@v4
+        uses: actions/checkout@v6
       - name: cache restore
-        uses: actions/cache/restore@v4
+        uses: actions/cache/restore@v5
         with:
           path: ${{ env.CCACHE_DIR }}
           key: macos-arm-xcode-ccache-${{github.ref}}-${{github.sha}}
@@ -76,7 +75,7 @@ jobs:
       - id: install_dependencies
         run: |
           brew update
-          brew install ossp-uuid bison flex ccache sqliteodbc automake 
autoconf ninja
+          brew install ossp-uuid bison flex ccache sqliteodbc automake autoconf
       - id: setup_env
         name: setup enviroment
         run: |
@@ -88,7 +87,7 @@ jobs:
           python -m venv venv && source venv/bin/activate && pip install -r 
requirements.txt && python main.py --noninteractive --skip-compiler-install 
--cmake-options="-DCMAKE_C_FLAGS=${CPPFLAGS} ${CFLAGS} 
-DCMAKE_CXX_FLAGS=${CPPFLAGS} ${CXXFLAGS}" 
--minifi-options="${MACOS_MINIFI_OPTIONS}"
         working-directory: bootstrap
       - name: cache save
-        uses: actions/cache/save@v4
+        uses: actions/cache/save@v5
         if: always()
         with:
           path: ${{ env.CCACHE_DIR }}
@@ -104,12 +103,12 @@ jobs:
         if: ${{ failure() && steps.test.conclusion == 'failure' }}
         run: |
           if [ "$(ls -A /cores)" ]; then echo "CORES_EXIST=true" >> 
$GITHUB_ENV; fi
-      - uses: actions/upload-artifact@v4
+      - uses: actions/upload-artifact@v7
         if: ${{ failure() && env.CORES_EXIST == 'true' }}
         with:
           name: macos-coredumps
           path: /cores
-      - uses: actions/upload-artifact@v4
+      - uses: actions/upload-artifact@v7
         if: ${{ failure() && env.CORES_EXIST == 'true' }}
         with:
           name: macos-binaries
@@ -175,20 +174,16 @@ jobs:
       - name: Support longpaths
         run: git config --system core.longpaths true
       - name: Checkout project
-        uses: actions/checkout@v4
+        uses: actions/checkout@v6
       - name: Restore cache
-        uses: actions/cache/restore@v4
+        uses: actions/cache/restore@v5
         with:
           path: ~/AppData/Local/Mozilla/sccache/cache
-          key: ${{ runner.os }}-2022-sccache-${{ github.ref }}-${{ github.sha 
}}
+          key: ${{ runner.os }}-2022-sccache-${{ 
hashFiles('**/CMakeLists.txt') }}
           restore-keys: |
-            ${{ runner.os }}-2022-sccache-${{ github.ref }}
-            ${{ runner.os }}-2022-sccache-refs/heads/main
-            ${{ runner.os }}-2022-sccache
-      - name: Run sccache-cache
-        uses: 
mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad  # 
v0.0.9
+            ${{ runner.os }}-2022-sccache-
       - name: Set up Python
-        run: choco -y install python & refreshenv
+        run: choco install -y python sccache && refreshenv
         shell: cmd
       - name: Install sqliteodbc driver
         run: |
@@ -196,16 +191,16 @@ jobs:
           if ((Get-FileHash 'sqliteodbc_w64.exe').Hash -ne 
"a4804e4f54f42c721df1323c5fcac101a8c7a577e7f20979227324ceab572d51") {Write 
"Hash mismatch"; Exit 1}
           Start-Process -FilePath ".\sqliteodbc_w64.exe" -ArgumentList "/S" 
-Wait
         shell: powershell
-      - name: Add sccache to path
-        run: '[Environment]::SetEnvironmentVariable("PATH", 
[Environment]::GetEnvironmentVariable("PATH", 
[EnvironmentVariableTarget]::Machine) + ";" + (Split-Path -Path 
$env:SCCACHE_PATH -Parent), [EnvironmentVariableTarget]::Machine);'
-        shell: powershell
+      - name: Zero sccache stats
+        run: sccache --zero-stats
+        shell: bash
       - name: build
         run: |
           python -m venv venv & venv\Scripts\activate & pip install -r 
requirements.txt & python main.py --noninteractive --skip-compiler-install 
--minifi-options="%WINDOWS_MINIFI_OPTIONS%" 
--cmake-options="-DCMAKE_C_COMPILER_LAUNCHER=sccache 
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache"
         shell: cmd
         working-directory: bootstrap
       - name: Save cache
-        uses: actions/cache/save@v4
+        uses: actions/cache/save@v5
         if: always()
         with:
           path: ~/AppData/Local/Mozilla/sccache/cache
@@ -216,10 +211,13 @@ jobs:
         working-directory: ./build
       - name: Upload artifact
         if: failure()
-        uses: actions/upload-artifact@v4
+        uses: actions/upload-artifact@v7
         with:
           name: cpack_error
           path: 
D:/a/nifi-minifi-cpp/nifi-minifi-cpp/build/_CPack_Packages/win64/WIX/wix.log
+      - name: Run sccache stat for check
+        shell: bash
+        run: sccache --show-stats
   ubuntu_22_04_clang_arm:
     name: "Ubuntu 22.04 clang aarch64"
     runs-on: ubuntu-22.04-arm
@@ -273,9 +271,9 @@ jobs:
         -DMINIFI_PERFORMANCE_TESTS=ON
     steps:
       - id: checkout
-        uses: actions/checkout@v4
+        uses: actions/checkout@v6
       - name: cache restore
-        uses: actions/cache/restore@v4
+        uses: actions/cache/restore@v5
         with:
           path: ${{ env.CCACHE_DIR }}
           key: 
ubuntu-22.04-arm-all-clang-ccache-${{github.ref}}-${{github.sha}}
@@ -312,7 +310,7 @@ jobs:
             && python main.py --noninteractive --skip-compiler-install 
--cmake-options="-DSTRICT_GSL_CHECKS=AUDIT -DCMAKE_EXPORT_COMPILE_COMMANDS=ON" 
--minifi-options="${UBUNTU_CLANG_MINIFI_OPTIONS}"
         working-directory: bootstrap
       - id: cache_save
-        uses: actions/cache/save@v4
+        uses: actions/cache/save@v5
         if: always()
         with:
           path: ${{ env.CCACHE_DIR }}
@@ -354,12 +352,12 @@ jobs:
         if: ${{ failure() && steps.test.conclusion == 'failure' }}
         run: |
           if [ "$(ls -A /var/lib/apport/coredump/)" ]; then echo 
"CORES_EXIST=true" >> $GITHUB_ENV; fi
-      - uses: actions/upload-artifact@v4
+      - uses: actions/upload-artifact@v7
         if: ${{ failure() && env.CORES_EXIST == 'true' }}
         with:
           name: ubuntu-clang-coredumps
           path: /var/lib/apport/coredump/
-      - uses: actions/upload-artifact@v4
+      - uses: actions/upload-artifact@v7
         if: ${{ failure() && env.CORES_EXIST == 'true' }}
         with:
           name: ubuntu-clang-binaries
@@ -370,9 +368,9 @@ jobs:
     timeout-minutes: 180
     steps:
       - id: checkout
-        uses: actions/checkout@v4
+        uses: actions/checkout@v6
       - name: cache restore
-        uses: actions/cache/restore@v4
+        uses: actions/cache/restore@v5
         with:
           path: ${{ env.CCACHE_DIR }}
           key: rocky-ccache-${{github.ref}}-${{github.sha}}
@@ -402,7 +400,7 @@ jobs:
               -DENABLE_PYTHON_SCRIPTING=ON -DENABLE_LUA_SCRIPTING=ON 
-DENABLE_KUBERNETES=ON -DENABLE_GCP=ON -DENABLE_PROCFS=ON 
-DENABLE_PROMETHEUS=ON \
               -DENABLE_ELASTICSEARCH=ON -DENABLE_GRAFANA_LOKI=ON 
-DENABLE_LLAMACPP=ON -DDOCKER_SKIP_TESTS=OFF -DDOCKER_BUILD_ONLY=ON 
-DDOCKER_CCACHE_DUMP_LOCATION=${{ env.CCACHE_DIR }} .. && make rocky-test
       - name: cache save
-        uses: actions/cache/save@v4
+        uses: actions/cache/save@v5
         if: always()
         with:
           path: ${{ env.CCACHE_DIR }}
@@ -423,12 +421,12 @@ jobs:
             docker cp rocky-test:/opt/minifi/build/bin /tmp
             sudo chmod -R 777 /cores
           fi
-      - uses: actions/upload-artifact@v4
+      - uses: actions/upload-artifact@v7
         if: ${{ failure() && env.CORES_EXIST == 'true' }}
         with:
           name: rocky-crashes
           path: /cores
-      - uses: actions/upload-artifact@v4
+      - uses: actions/upload-artifact@v7
         if: ${{ failure() && env.CORES_EXIST == 'true' }}
         with:
           name: rocky-binaries
@@ -439,9 +437,9 @@ jobs:
     timeout-minutes: 180
     steps:
       - id: checkout
-        uses: actions/checkout@v4
+        uses: actions/checkout@v6
       - name: cache restore
-        uses: actions/cache/restore@v4
+        uses: actions/cache/restore@v5
         with:
           path: ${{ env.CCACHE_DIR }}
           key: docker-ccache-${{github.ref}}-${{github.sha}}
@@ -465,7 +463,7 @@ jobs:
           cmake ${DOCKER_CMAKE_FLAGS} -DDOCKER_CCACHE_DUMP_LOCATION=${{ 
env.CCACHE_DIR }} ..
           make docker
       - name: cache save
-        uses: actions/cache/save@v4
+        uses: actions/cache/save@v5
         if: always()
         with:
           path: ${{ env.CCACHE_DIR }}
@@ -473,7 +471,7 @@ jobs:
       - name: Save docker image
         run: cd build && docker save -o minifi_docker.tar 
apacheminificpp:$(grep CMAKE_PROJECT_VERSION:STATIC CMakeCache.txt | cut -d "=" 
-f2)
       - name: Upload artifact
-        uses: actions/upload-artifact@v4
+        uses: actions/upload-artifact@v7
         with:
           name: minifi_docker
           path: build/minifi_docker.tar
@@ -484,7 +482,7 @@ jobs:
     timeout-minutes: 180
     steps:
       - id: checkout
-        uses: actions/checkout@v4
+        uses: actions/checkout@v6
       - id: run_cmake
         name: Run CMake
         run: |
@@ -492,7 +490,7 @@ jobs:
           cd build
           cmake ${DOCKER_CMAKE_FLAGS} ..
       - name: Download artifact
-        uses: actions/download-artifact@v4
+        uses: actions/download-artifact@v8
         with:
           name: minifi_docker
           path: build
@@ -520,18 +518,17 @@ jobs:
         run: make docker-verify-modular
       - name: Test Reporter
         if: always()
-        uses: 
phoenix-actions/test-reporting@f957cd93fc2d848d556fa0d03c57bc79127b6b5e  # v15
+        uses: dorny/test-reporter@a43b3a5f7366b97d083190328d2c652e1a8b6aa2 # v3
         with:
           name: Docker integration tests
           path: build/behavex_output_modular/behave/*.xml
           reporter: java-junit
-          output-to: 'step-summary'
           only-summary: 'true'
           list-tests: 'failed'
           list-suites: 'failed'
       - name: Upload artifact
         if: failure()
-        uses: actions/upload-artifact@v4
+        uses: actions/upload-artifact@v7
         with:
           name: behavex_output_modular
           path: build/behavex_output_modular
@@ -541,7 +538,7 @@ jobs:
     timeout-minutes: 15
     steps:
       - id: checkout
-        uses: actions/checkout@v4
+        uses: actions/checkout@v6
 
       - id: install_deps
         run: sudo apt update && sudo apt install -y flake8
diff --git a/.github/workflows/clear-actions-cache.yml 
b/.github/workflows/clear-actions-cache.yml
index 208382ef7..b4c6ae0df 100644
--- a/.github/workflows/clear-actions-cache.yml
+++ b/.github/workflows/clear-actions-cache.yml
@@ -11,7 +11,7 @@ jobs:
     runs-on: ubuntu-24.04
     steps:
       - id: checkout
-        uses: actions/checkout@v4
+        uses: actions/checkout@v6
       - name: clear cache
         run: |
           python3 -m venv github_env
diff --git a/.github/workflows/compiler-support.yml 
b/.github/workflows/compiler-support.yml
index 5cbf79535..555aa7a4e 100644
--- a/.github/workflows/compiler-support.yml
+++ b/.github/workflows/compiler-support.yml
@@ -20,7 +20,7 @@ jobs:
 
     steps:
       - name: 'Checkout repository code'
-        uses: actions/checkout@v4
+        uses: actions/checkout@v6
 
       - name: 'Build Project with ${{ matrix.platform.id }}'
         run: |
@@ -43,7 +43,7 @@ jobs:
 
     steps:
       - name: 'Checkout repository code'
-        uses: actions/checkout@v4
+        uses: actions/checkout@v6
 
       - name: 'Build Project with ${{ matrix.platform.id }}'
         run: |
diff --git a/.github/workflows/create-release-artifacts.yml 
b/.github/workflows/create-release-artifacts.yml
index 4980bac58..16e2c4756 100644
--- a/.github/workflows/create-release-artifacts.yml
+++ b/.github/workflows/create-release-artifacts.yml
@@ -23,7 +23,7 @@ jobs:
 
     steps:
       - id: checkout
-        uses: actions/checkout@v4
+        uses: actions/checkout@v6
 
       - id: install_deps
         run: |
@@ -34,12 +34,12 @@ jobs:
         run: |
           mkdir build && cd build && cmake ${CMAKE_FLAGS} .. && make rocky
 
-      - uses: actions/upload-artifact@v4
+      - uses: actions/upload-artifact@v7
         with:
           name: ${{ matrix.platform.tar-artifact }}
           path: build/nifi-minifi-cpp-*-bin-rockylinux.tar.gz
 
-      - uses: actions/upload-artifact@v4
+      - uses: actions/upload-artifact@v7
         with:
           name: ${{ matrix.platform.rpm-artifact }}
           path: build/nifi-minifi-cpp-*.rpm
diff --git a/.github/workflows/memcheck_ci.yml 
b/.github/workflows/memcheck_ci.yml
index ad728dadc..6a94b89f1 100644
--- a/.github/workflows/memcheck_ci.yml
+++ b/.github/workflows/memcheck_ci.yml
@@ -21,9 +21,9 @@ jobs:
     timeout-minutes: 120
     steps:
       - id: checkout
-        uses: actions/checkout@v4
+        uses: actions/checkout@v6
       - name: cache restore
-        uses: actions/cache/restore@v4
+        uses: actions/cache/restore@v5
         with:
           path: ${{ env.CCACHE_DIR }}
           key: memcheck-ccache-${{github.ref}}-${{github.sha}}
@@ -43,7 +43,7 @@ jobs:
             && python main.py --noninteractive 
--minifi-options="${CMAKE_FLAGS}"
         working-directory: bootstrap
       - name: cache save
-        uses: actions/cache/save@v4
+        uses: actions/cache/save@v5
         if: always()
         with:
           path: ${{ env.CCACHE_DIR }}
diff --git a/.github/workflows/verify-package.yml 
b/.github/workflows/verify-package.yml
index e3b8f8bd1..8da5782da 100644
--- a/.github/workflows/verify-package.yml
+++ b/.github/workflows/verify-package.yml
@@ -57,16 +57,16 @@ jobs:
       contents: read
     steps:
       - id: checkout
-        uses: actions/checkout@v4
+        uses: actions/checkout@v6
 
-      - uses: actions/download-artifact@v4
+      - uses: actions/download-artifact@v8
         with:
           run-id: ${{ inputs.artifacts_workflow_id || 
github.event.workflow_run.id }}
           name: minifi-${{ matrix.arch }}-tar
           path: build
           github-token: ${{ github.token }}
 
-      - uses: actions/download-artifact@v4
+      - uses: actions/download-artifact@v8
         with:
           run-id: ${{ inputs.artifacts_workflow_id || 
github.event.workflow_run.id }}
           name: minifi-${{ matrix.arch }}-rpm
@@ -88,18 +88,17 @@ jobs:
 
       - name: Test Reporter
         if: always()
-        uses: 
phoenix-actions/test-reporting@f957cd93fc2d848d556fa0d03c57bc79127b6b5e  # v15
+        uses: dorny/test-reporter@a43b3a5f7366b97d083190328d2c652e1a8b6aa2 # v3
         with:
           name: "${{ matrix.platform.name }} (${{ matrix.arch }})${{ 
(github.event_name != 'workflow_dispatch' || inputs.enable_fips) && ' (FIPS 
Mode)' || '' }}"
           path: build/behavex_output_modular/behave/*.xml
           reporter: java-junit
-          output-to: 'step-summary'
           list-tests: 'failed'
           list-suites: 'failed'
 
       - name: Upload artifact
         if: failure()
-        uses: actions/upload-artifact@v4
+        uses: actions/upload-artifact@v7
         with:
           name: ${{ matrix.platform.id }}_${{ matrix.arch 
}}_behavex_output_modular${{ (github.event_name != 'workflow_dispatch' || 
inputs.enable_fips) && '_fips' || '' }}
           path: build/behavex_output_modular

Reply via email to