diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 173363ec17..677761b0fa 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -7,19 +7,19 @@ on: schedule: - cron: '0 2 * * SUN' +# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre#comment133398800_72408109 +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true + jobs: build: runs-on: ubuntu-latest steps: - # https://github.com/marketplace/actions/cancel-workflow-action - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} - - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Print system information run: lscpu diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index c8e0432fd3..eb3c8f95c6 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -7,6 +7,12 @@ on: schedule: - cron: '0 2 * * SUN' +# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre#comment133398800_72408109 +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true + jobs: build-ios: runs-on: ${{ matrix.os }} @@ -16,14 +22,8 @@ jobs: os: [macos-11] steps: - # https://github.com/marketplace/actions/cancel-workflow-action - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} - - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Print system information run: | diff --git a/.github/workflows/macos-ustk.yml b/.github/workflows/macos-ustk.yml index 120d6211e2..266e8c3baf 100644 --- a/.github/workflows/macos-ustk.yml +++ b/.github/workflows/macos-ustk.yml @@ -7,6 +7,12 @@ on: schedule: - cron: '0 2 * * SUN' +# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre#comment133398800_72408109 +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true + jobs: build-macos: runs-on: ${{ matrix.os }} @@ -16,14 +22,8 @@ jobs: os: [macos-12] steps: - # https://github.com/marketplace/actions/cancel-workflow-action - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} - - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Print system information run: | diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 4427219ff7..7bd441dbbe 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -7,6 +7,12 @@ on: schedule: - cron: '0 2 * * SUN' +# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre#comment133398800_72408109 +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true + jobs: build-macos: runs-on: ${{ matrix.os }} @@ -16,14 +22,8 @@ jobs: os: [macos-12, macos-13] steps: - # https://github.com/marketplace/actions/cancel-workflow-action - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} - - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Print system information run: | diff --git a/.github/workflows/other-arch-isolated.yml b/.github/workflows/other-arch-isolated.yml index 71d9e8ed55..868bfebb3d 100644 --- a/.github/workflows/other-arch-isolated.yml +++ b/.github/workflows/other-arch-isolated.yml @@ -8,10 +8,16 @@ on: schedule: - cron: '0 2 * * SUN' +# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre#comment133398800_72408109 +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true + jobs: build-other-architectures: # The host should always be linux - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 name: Build on ${{ matrix.distro }} ${{ matrix.arch }} ${{ matrix.endianness }} # Run steps on a matrix of different arch/distro combinations @@ -40,14 +46,8 @@ jobs: endianness: (Big Endian) steps: - # https://github.com/marketplace/actions/cancel-workflow-action - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} - - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run on arch uses: uraimo/run-on-arch-action@v2.2.1 @@ -65,7 +65,8 @@ jobs: pwd mkdir build && cd build - cmake .. -DBUILD_DEMOS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TUTORIALS=OFF -DBUILD_JAVA=OFF -DBUILD_MODULE_visp_java=OFF -DBUILD_MODULE_visp_java_binding=OFF -DUSE_CXX_STANDARD=17 + cmake .. -DBUILD_DEMOS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TUTORIALS=OFF -DBUILD_JAVA=OFF \ + -DUSE_JPEG=OFF -DUSE_PNG=OFF -DUSE_X11=OFF -DUSE_XML2=OFF -DBUILD_JAVA=OFF -DUSE_BLAS/LAPACK=OFF cat ViSP-third-party.txt make -j$(nproc) diff --git a/.github/workflows/other-arch.yml b/.github/workflows/other-arch.yml index 2818fda11a..902a514e86 100644 --- a/.github/workflows/other-arch.yml +++ b/.github/workflows/other-arch.yml @@ -8,6 +8,12 @@ on: schedule: - cron: '0 2 * * SUN' +# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre#comment133398800_72408109 +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true + jobs: build-other-architectures: # The host should always be linux @@ -38,14 +44,8 @@ jobs: endianness: (Big Endian) steps: - # https://github.com/marketplace/actions/cancel-workflow-action - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} - - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run on arch uses: uraimo/run-on-arch-action@v2.1.1 diff --git a/.github/workflows/ubuntu-3rdparty.yml b/.github/workflows/ubuntu-3rdparty.yml index c500260066..a0950d6946 100644 --- a/.github/workflows/ubuntu-3rdparty.yml +++ b/.github/workflows/ubuntu-3rdparty.yml @@ -7,6 +7,12 @@ on: schedule: - cron: '0 2 * * SUN' +# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre#comment133398800_72408109 +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true + jobs: build-ubuntu-dep-apt: runs-on: ${{ matrix.os }} @@ -17,14 +23,8 @@ jobs: compiler: [ {CC: /usr/bin/gcc-10, CXX: /usr/bin/g++-10}, {CC: /usr/bin/clang, CXX: /usr/bin/clang++} ] steps: - # https://github.com/marketplace/actions/cancel-workflow-action - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} - - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Print system information run: lscpu diff --git a/.github/workflows/ubuntu-contrib.yml b/.github/workflows/ubuntu-contrib.yml index 7a417e34d1..f75e2b7c4d 100644 --- a/.github/workflows/ubuntu-contrib.yml +++ b/.github/workflows/ubuntu-contrib.yml @@ -7,6 +7,12 @@ on: schedule: - cron: '0 2 * * SUN' +# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre#comment133398800_72408109 +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true + jobs: build-ubuntu-dep-apt: runs-on: ${{ matrix.os }} @@ -17,14 +23,8 @@ jobs: compiler: [ {CC: /usr/bin/gcc-10, CXX: /usr/bin/g++-10}, {CC: /usr/bin/clang, CXX: /usr/bin/clang++} ] steps: - # https://github.com/marketplace/actions/cancel-workflow-action - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} - - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Print system information run: lscpu diff --git a/.github/workflows/ubuntu-dep-apt.yml b/.github/workflows/ubuntu-dep-apt.yml index bb77160c2c..79a78890ff 100644 --- a/.github/workflows/ubuntu-dep-apt.yml +++ b/.github/workflows/ubuntu-dep-apt.yml @@ -7,6 +7,12 @@ on: schedule: - cron: '0 2 * * SUN' +# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre#comment133398800_72408109 +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true + jobs: build-ubuntu-dep-apt: runs-on: ${{ matrix.os }} @@ -18,14 +24,8 @@ jobs: standard: [ 11, 14, 17 ] steps: - # https://github.com/marketplace/actions/cancel-workflow-action - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} - - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Print system information run: lscpu diff --git a/.github/workflows/ubuntu-dep-src.yml b/.github/workflows/ubuntu-dep-src.yml index af526068c8..aa382ffd69 100644 --- a/.github/workflows/ubuntu-dep-src.yml +++ b/.github/workflows/ubuntu-dep-src.yml @@ -7,6 +7,12 @@ on: schedule: - cron: '0 2 * * SUN' +# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre#comment133398800_72408109 +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true + jobs: build-ubuntu-dep-src: runs-on: ${{ matrix.os }} @@ -16,14 +22,8 @@ jobs: os: [ubuntu-20.04, ubuntu-22.04] steps: - # https://github.com/marketplace/actions/cancel-workflow-action - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} - - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Print system information run: lscpu diff --git a/.github/workflows/ubuntu-isolated.yml b/.github/workflows/ubuntu-isolated.yml index a275b6080e..bd5684f0e5 100644 --- a/.github/workflows/ubuntu-isolated.yml +++ b/.github/workflows/ubuntu-isolated.yml @@ -8,6 +8,12 @@ on: schedule: - cron: '0 2 * * SUN' +# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre#comment133398800_72408109 +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true + jobs: build-ubuntu-dep-apt: runs-on: ${{ matrix.os }} @@ -19,32 +25,14 @@ jobs: standard: [ 17 ] steps: - # https://github.com/marketplace/actions/cancel-workflow-action - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} - - # Remove some packages to emulate the ROS2 Jenkins environment - # X11: https://raspberrypi.stackexchange.com/a/92334 - # Java: https://askubuntu.com/a/185531 - name: Remove packages + # Install OpenMP and turn-off some dependencies (below) to try to have a similar env compared to the ROS buildbot + - name: Install OpenMP run: | + sudo apt-get update sudo apt-get install libomp-dev - sudo apt purge --auto-remove 'x11-*' - java -version - sudo dpkg --list | grep -i jdk - sudo dpkg --list | grep -i java - sudo apt-get purge --auto-remove openjdk* - sudo apt-get purge --auto-remove icedtea-* openjdk-* - sudo dpkg --list | grep -i jdk - sudo dpkg --list | grep -i java - sudo apt purge --auto-remove 'libjpeg*' - sudo apt purge --auto-remove 'libpng*' - sudo apt purge --auto-remove 'libxml*' - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Print system information run: lscpu @@ -65,8 +53,9 @@ jobs: echo "CC: $CC" echo "CXX: $CXX" echo "Standard: $CXX_STANDARD" - cmake .. -DCMAKE_C_COMPILER="${CC}" -DCMAKE_CXX_COMPILER="${CXX}" -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/tmp/usr/local -DCMAKE_VERBOSE_MAKEFILE=ON -DUSE_CXX_STANDARD=$CXX_STANDARD + cmake .. -DCMAKE_C_COMPILER="${CC}" -DCMAKE_CXX_COMPILER="${CXX}" \ + -DCMAKE_INSTALL_PREFIX=/tmp/usr/local -DCMAKE_VERBOSE_MAKEFILE=ON -DUSE_CXX_STANDARD=$CXX_STANDARD \ + -DUSE_JPEG=OFF -DUSE_PNG=OFF -DUSE_X11=OFF -DUSE_XML2=OFF -DBUILD_JAVA=OFF -DUSE_BLAS/LAPACK=OFF cat ViSP-third-party.txt - name: Compile diff --git a/.github/workflows/ubuntu-sanitizers.yml b/.github/workflows/ubuntu-sanitizers.yml index 46bc99623a..9894441bac 100644 --- a/.github/workflows/ubuntu-sanitizers.yml +++ b/.github/workflows/ubuntu-sanitizers.yml @@ -9,6 +9,12 @@ on: # every Sunday at 2 am - cron: '0 2 * * SUN' +# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre#comment133398800_72408109 +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true + jobs: build-ubuntu-sanitizers: runs-on: ubuntu-latest @@ -18,14 +24,8 @@ jobs: flags: ["-fsanitize=address", "-fsanitize=leak", "-fsanitize=thread", "-fsanitize=undefined"] steps: - # https://github.com/marketplace/actions/cancel-workflow-action - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} - - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Print system information run: lscpu diff --git a/.github/workflows/ubuntu-ustk.yml b/.github/workflows/ubuntu-ustk.yml index fab02f8d6b..6c63dd55db 100644 --- a/.github/workflows/ubuntu-ustk.yml +++ b/.github/workflows/ubuntu-ustk.yml @@ -7,6 +7,12 @@ on: schedule: - cron: '0 2 * * SUN' +# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre#comment133398800_72408109 +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true + jobs: build-ubuntu-dep-apt: runs-on: ${{ matrix.os }} @@ -16,14 +22,8 @@ jobs: os: [ubuntu-20.04, ubuntu-22.04] steps: - # https://github.com/marketplace/actions/cancel-workflow-action - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} - - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Print system information run: lscpu diff --git a/.github/workflows/valgrind.yml b/.github/workflows/valgrind.yml index 6095eb2034..3f77bb5762 100644 --- a/.github/workflows/valgrind.yml +++ b/.github/workflows/valgrind.yml @@ -7,19 +7,19 @@ on: schedule: - cron: '0 2 * * SUN' +# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre#comment133398800_72408109 +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true + jobs: build-ubuntu-valgrind: runs-on: ubuntu-latest steps: - # https://github.com/marketplace/actions/cancel-workflow-action - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} - - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Print system information run: lscpu diff --git a/.github/workflows/windows-clang.yaml b/.github/workflows/windows-clang.yaml index 7868044bf9..c6302a15b2 100644 --- a/.github/workflows/windows-clang.yaml +++ b/.github/workflows/windows-clang.yaml @@ -3,6 +3,12 @@ on: pull_request: push: +# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre#comment133398800_72408109 +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true + jobs: build: runs-on: ${{ matrix.os }} @@ -20,14 +26,8 @@ jobs: compiler: clang-cl steps: - # https://github.com/marketplace/actions/cancel-workflow-action - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} - - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Display the workspace path working-directory: ${{ github.workspace }} diff --git a/.github/workflows/windows-msvc.yaml b/.github/workflows/windows-msvc.yaml index 4a3b846ce3..33717516aa 100644 --- a/.github/workflows/windows-msvc.yaml +++ b/.github/workflows/windows-msvc.yaml @@ -3,6 +3,12 @@ on: pull_request: push: +# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre#comment133398800_72408109 +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true + jobs: build: runs-on: ${{ matrix.os }} @@ -19,14 +25,8 @@ jobs: os: windows-2019 steps: - # https://github.com/marketplace/actions/cancel-workflow-action - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} - - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Display the workspace path working-directory: ${{ github.workspace }}