You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by ad...@apache.org on 2021/11/16 11:13:07 UTC

[nifi-minifi-cpp] branch main updated (87147e2 -> 30ff439)

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

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


    from 87147e2  MINIFICPP-1682 Update documentation for docker image build and usage
     new e21b641  MINIFICPP-1685 reduce CI usage
     new 30ff439  MINIFICPP-1683 Revert github actions caching changes

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .github/workflows/ci.yml | 102 +++++++++--------------------------------------
 1 file changed, 19 insertions(+), 83 deletions(-)

[nifi-minifi-cpp] 02/02: MINIFICPP-1683 Revert github actions caching changes

Posted by ad...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 30ff43903ea4ccc62c4237c35daad1580177d4be
Author: Gabor Gyimesi <ga...@gmail.com>
AuthorDate: Tue Nov 16 12:09:43 2021 +0100

    MINIFICPP-1683 Revert github actions caching changes
    
    Signed-off-by: Adam Debreceni <ad...@apache.org>
    
    This closes #1214
---
 .github/workflows/ci.yml | 30 ++++++++++++++++++------------
 1 file changed, 18 insertions(+), 12 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 81be07c..a1dff22 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -15,9 +15,10 @@ jobs:
         uses: actions/cache@v2
         with:
           path: ${{ env.CCACHE_DIR }}
-          key: macos-xcode12.0-ccache-${{github.ref}}
+          key: macos-xcode12.0-ccache-${{github.ref}}-${{github.sha}}
           restore-keys: |
-            macos-xcode12.0-ccache-
+            macos-xcode12.0-ccache-${{github.ref}}-
+            macos-xcode12.0-ccache-refs/heads/main-
       - id: install_dependencies
         run: |
           brew update
@@ -54,9 +55,10 @@ jobs:
         uses: actions/cache@v2
         with:
           path: ${{ env.CLCACHE_DIR }}
-          key: windows-vs2019-clcache-${{github.ref}}
+          key: windows-vs2019-clcache-${{github.ref}}-${{github.sha}}
           restore-keys: |
-            windows-vs2019-clcache-
+            windows-vs2019-clcache-${{github.ref}}-
+            windows-vs2019-clcache-refs/heads/main-
       - name: Setup PATH
         uses: microsoft/setup-msbuild@v1.0.2
       - id: install-sqliteodbc-driver
@@ -97,9 +99,10 @@ jobs:
         uses: actions/cache@v2
         with:
           path: ~/.ccache
-          key: ubuntu-20.04-ccache-${{github.ref}}
+          key: ubuntu-20.04-ccache-${{github.ref}}-${{github.sha}}
           restore-keys: |
-            ubuntu-20.04-ccache-
+            ubuntu-20.04-ccache-${{github.ref}}-
+            ubuntu-20.04-ccache-refs/heads/main-
       - id: install_deps
         run: |
           sudo apt update
@@ -136,9 +139,10 @@ jobs:
         uses: actions/cache@v2
         with:
           path: ~/.ccache
-          key: ubuntu-20.04-all-clang-ccache-${{github.ref}}
+          key: ubuntu-20.04-all-clang-ccache-${{github.ref}}-${{github.sha}}
           restore-keys: |
-            ubuntu-20.04-all-clang-ccache-
+            ubuntu-20.04-all-clang-ccache-${{github.ref}}-
+            ubuntu-20.04-all-clang-ccache-refs/heads/main-
       - id: install_deps
         run: |
           sudo apt update
@@ -166,9 +170,10 @@ jobs:
         uses: actions/cache@v2
         with:
           path: ~/.ccache
-          key: centos-ccache-${{github.ref}}
+          key: centos-ccache-${{github.ref}}-${{github.sha}}
           restore-keys: |
-            centos-ccache-
+            centos-ccache-${{github.ref}}-
+            centos-ccache-refs/heads/main-
       - id: install_deps
         run: |
           sudo apt update
@@ -187,9 +192,10 @@ jobs:
         uses: actions/cache@v2
         with:
           path: ~/.ccache
-          key: docker-ccache-${{github.ref}}
+          key: docker-ccache-${{github.ref}}-${{github.sha}}
           restore-keys: |
-            docker-ccache-
+            docker-ccache-${{github.ref}}-
+            docker-ccache-refs/heads/main
       - id: build
         run: |
           if [ -d ~/.ccache ]; then mv ~/.ccache .; fi

[nifi-minifi-cpp] 01/02: MINIFICPP-1685 reduce CI usage

Posted by ad...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit e21b641b092911313737f2744589ebc18bbb326c
Author: Marton Szasz <sz...@apache.org>
AuthorDate: Tue Nov 16 12:02:58 2021 +0100

    MINIFICPP-1685 reduce CI usage
    
    remove ubuntu 18.04
    reduce ubuntu 20.04 clang scope
    remove fedora and debian docker builds
    
    Signed-off-by: Adam Debreceni <ad...@apache.org>
    
    This closes #1215
---
 .github/workflows/ci.yml | 72 +-----------------------------------------------
 1 file changed, 1 insertion(+), 71 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ce0518a..81be07c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -151,31 +151,10 @@ jobs:
           cd build
           export CC=clang
           export CXX=clang++
-          cmake -DUSE_SHARED_LIBS= -DCMAKE_BUILD_TYPE=Release -DENABLE_NANOFI=ON -DENABLE_JNI=ON -DENABLE_SENSORS=ON -DENABLE_OPENWSMAN=ON -DENABLE_OPENCV=ON -DENABLE_MQTT=ON -DENABLE_GPS=ON -DENABLE_USB_CAMERA=ON -DENABLE_LIBRDKAFKA=ON -DENABLE_OPC=ON -DENABLE_SFTP=ON -DENABLE_COAP=ON -DENABLE_PYTHON=ON -DENABLE_SQL=ON -DENABLE_AWS=ON -DENABLE_AZURE=ON -DSTRICT_GSL_CHECKS=AUDIT -DFAIL_ON_WARNINGS=ON ..
+          cmake -DUSE_SHARED_LIBS= -DCMAKE_BUILD_TYPE=Release -DENABLE_MQTT=ON -DENABLE_LIBRDKAFKA=ON -DENABLE_AWS=ON -DENABLE_AZURE=ON -DFAIL_ON_WARNINGS=ON ..
           cmake --build . --parallel $(nproc)
       - name: test
         run: cd build && make test ARGS="--timeout 300 -j8 --output-on-failure"
-  debian:
-    name: "debian"
-    runs-on: ubuntu-20.04
-    timeout-minutes: 60
-    steps:
-      - id: checkout
-        uses: actions/checkout@v2
-      - id: cache
-        uses: actions/cache@v2
-        with:
-          path: ~/.ccache
-          key: debian-ccache-${{github.ref}}
-          restore-keys: |
-            debian-ccache-
-      - id: install_deps
-        run: |
-          sudo apt update
-          sudo apt install -y ccache
-          echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
-      - id: build
-        run: mkdir build && cd build && cmake -DSTRICT_GSL_CHECKS=AUDIT .. && make debian
   centos:
     name: "centos"
     runs-on: ubuntu-20.04
@@ -197,55 +176,6 @@ jobs:
           echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
       - id: build
         run: mkdir build && cd build && cmake -DSTRICT_GSL_CHECKS=AUDIT .. && make centos
-  fedora:
-    name: "fedora"
-    runs-on: ubuntu-20.04
-    timeout-minutes: 60
-    steps:
-      - id: checkout
-        uses: actions/checkout@v2
-      - id: cache
-        uses: actions/cache@v2
-        with:
-          path: ~/.ccache
-          key: fedora-ccache-${{github.ref}}
-          restore-keys: |
-            fedora-ccache-
-      - id: install_deps
-        run: |
-          sudo apt update
-          sudo apt install -y ccache
-          echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
-      - id: build
-        run: mkdir build && cd build && cmake -DSTRICT_GSL_CHECKS=AUDIT .. && make fedora
-  ubuntu_18_04:
-    name: "ubuntu-18.04"
-    runs-on: ubuntu-18.04
-    timeout-minutes: 60
-    steps:
-      - id: checkout
-        uses: actions/checkout@v2
-      - id: cache
-        uses: actions/cache@v2
-        with:
-          path: ~/.ccache
-          key: ubuntu-18.04-ccache-${{github.ref}}
-          restore-keys: |
-            ubuntu-18.04-ccache-
-      - id: install_deps
-        run: |
-          sudo apt update
-          sudo apt install -y ccache
-          echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
-          echo -e "127.0.0.1\t$HOSTNAME" | sudo tee -a /etc/hosts > /dev/null
-      - id: build
-        run: |
-          ./bootstrap.sh -e -t
-          cd build
-          export CC=gcc-11
-          export CXX=g++-11
-          cmake -DSTRICT_GSL_CHECKS=AUDIT ..
-          make u18
   docker_integration_tests:
     name: "Docker integration tests"
     runs-on: ubuntu-20.04