Skip to content

Commit

Permalink
Try skipping some CI jobs with a special tag in the commit message.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-trinh committed Feb 4, 2024
1 parent b370a00 commit 2a98324
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 12 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:

jobs:
build:
# https://stackoverflow.com/questions/59759921/how-to-skip-github-actions-job-on-push-event#comment110153861_59775665
if: "!contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
runs-on: ubuntu-latest

steps:
Expand All @@ -31,7 +33,8 @@ jobs:
run: dpkg --list | grep compiler

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libx11-dev libdc1394-dev libv4l-dev liblapack-dev libopenblas-dev libeigen3-dev libopencv-dev nlohmann-json3-dev lcov gcovr
run: sudo apt-get update && sudo apt-get install -y libx11-dev libdc1394-dev libv4l-dev liblapack-dev \
libopenblas-dev libeigen3-dev libopencv-dev nlohmann-json3-dev lcov gcovr

- name: Clone visp-images
env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:

jobs:
build-ios:
# https://stackoverflow.com/questions/59759921/how-to-skip-github-actions-job-on-push-event#comment110153861_59775665
if: "!contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/macos-ustk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:

jobs:
build-macos:
# https://stackoverflow.com/questions/59759921/how-to-skip-github-actions-job-on-push-event#comment110153861_59775665
if: "!contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -70,7 +72,8 @@ jobs:
export Qt5_DIR="$(brew --prefix qt5)/lib/cmake/Qt5"
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/tmp/usr/local -DVISP_CONTRIB_MODULES_PATH=${HOME}/ustk/modules -DQt5_DIR=$(brew --prefix qt5)/lib/cmake/Qt5
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/tmp/usr/local -DVISP_CONTRIB_MODULES_PATH=${HOME}/ustk/modules \
-DQt5_DIR=$(brew --prefix qt5)/lib/cmake/Qt5
cat ViSP-third-party.txt
- name: Compile
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/other-arch-isolated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 -DBUILD_MODULE_visp_java=OFF \
-DBUILD_MODULE_visp_java_binding=OFF -DUSE_CXX_STANDARD=17
cat ViSP-third-party.txt
make -j$(nproc)
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/other-arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:

jobs:
build-other-architectures:
# https://stackoverflow.com/questions/59759921/how-to-skip-github-actions-job-on-push-event#comment110153861_59775665
if: "!contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
# The host should always be linux
runs-on: ubuntu-20.04
name: Build on ${{ matrix.distro }} ${{ matrix.arch }} ${{ matrix.endianness }}
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/ubuntu-3rdparty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:

jobs:
build-ubuntu-dep-apt:
# https://stackoverflow.com/questions/59759921/how-to-skip-github-actions-job-on-push-event#comment110153861_59775665
if: "!contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -37,11 +39,13 @@ jobs:

- name: Install dependencies for ubuntu 18.04 and 20.04
if: matrix.os != 'ubuntu-22.04'
run: sudo apt-get update && sudo apt-get install -y libx11-dev libdc1394-22-dev libv4l-dev liblapack-dev libopenblas-dev libeigen3-dev libopencv-dev nlohmann-json3-dev
run: sudo apt-get update && sudo apt-get install -y libx11-dev libdc1394-22-dev libv4l-dev liblapack-dev libopenblas-dev \
libeigen3-dev libopencv-dev nlohmann-json3-dev

- name: Install dependencies for ubuntu 22.04
if: matrix.os == 'ubuntu-22.04'
run: sudo apt-get update && sudo apt-get install -y libx11-dev libdc1394-dev libv4l-dev liblapack-dev libopenblas-dev libeigen3-dev libopencv-dev nlohmann-json3-dev
run: sudo apt-get update && sudo apt-get install -y libx11-dev libdc1394-dev libv4l-dev liblapack-dev libopenblas-dev \
libeigen3-dev libopencv-dev nlohmann-json3-dev

- name: Clone camera_localization
run: |
Expand All @@ -59,7 +63,8 @@ jobs:
CXX=${{ matrix.compiler.CXX }}
echo "CC: $CC"
echo "CXX: $CXX"
cmake .. -DCMAKE_C_COMPILER="${CC}" -DCMAKE_CXX_COMPILER="${CXX}" -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=OFF -DBUILD_DEMOS=OFF -DBUILD_TUTORIALS=OFF -DBUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=/tmp/usr/local
cmake .. -DCMAKE_C_COMPILER="${CC}" -DCMAKE_CXX_COMPILER="${CXX}" -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=OFF \
-DBUILD_DEMOS=OFF -DBUILD_TUTORIALS=OFF -DBUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=/tmp/usr/local
cat ViSP-third-party.txt
- name: Compile and install ViSP
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/ubuntu-contrib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:

jobs:
build-ubuntu-dep-apt:
# https://stackoverflow.com/questions/59759921/how-to-skip-github-actions-job-on-push-event#comment110153861_59775665
if: "!contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -37,11 +39,13 @@ jobs:

- name: Install dependencies for ubuntu 18.04 and 20.04
if: matrix.os != 'ubuntu-22.04'
run: sudo apt-get update && sudo apt-get install -y libx11-dev libdc1394-22-dev libv4l-dev liblapack-dev libopenblas-dev libeigen3-dev libopencv-dev nlohmann-json3-dev
run: sudo apt-get update && sudo apt-get install -y libx11-dev libdc1394-22-dev libv4l-dev liblapack-dev libopenblas-dev \
libeigen3-dev libopencv-dev nlohmann-json3-dev

- name: Install dependencies for ubuntu 22.04
if: matrix.os == 'ubuntu-22.04'
run: sudo apt-get update && sudo apt-get install -y libx11-dev libdc1394-dev libv4l-dev liblapack-dev libopenblas-dev libeigen3-dev libopencv-dev nlohmann-json3-dev
run: sudo apt-get update && sudo apt-get install -y libx11-dev libdc1394-dev libv4l-dev liblapack-dev libopenblas-dev \
libeigen3-dev libopencv-dev nlohmann-json3-dev

- name: Clone visp_contrib
run: |
Expand All @@ -55,7 +59,8 @@ jobs:
CXX=${{ matrix.compiler.CXX }}
echo "CC: $CC"
echo "CXX: $CXX"
cmake .. -DVISP_CONTRIB_MODULES_PATH=${HOME}/visp_contrib/modules -DCMAKE_C_COMPILER="${CC}" -DCMAKE_CXX_COMPILER="${CXX}" -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=OFF -DBUILD_DEMOS=OFF -DBUILD_TUTORIALS=OFF -DBUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=/tmp/usr/local
cmake .. -DVISP_CONTRIB_MODULES_PATH=${HOME}/visp_contrib/modules -DCMAKE_C_COMPILER="${CC}" -DCMAKE_CXX_COMPILER="${CXX}" \
-DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=OFF -DBUILD_DEMOS=OFF -DBUILD_TUTORIALS=OFF -DBUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=/tmp/usr/local
cat ViSP-third-party.txt
- name: Compile and install ViSP
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/ubuntu-ustk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:

jobs:
build-ubuntu-dep-apt:
# https://stackoverflow.com/questions/59759921/how-to-skip-github-actions-job-on-push-event#comment110153861_59775665
if: "!contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -36,11 +38,13 @@ jobs:

- name: Install dependencies for ubuntu 20.04
if: matrix.os != 'ubuntu-22.04'
run: sudo apt-get update && sudo apt-get install -y libx11-dev libdc1394-22-dev libv4l-dev liblapack-dev libopenblas-dev libeigen3-dev libopencv-dev nlohmann-json3-dev
run: sudo apt-get update && sudo apt-get install -y libx11-dev libdc1394-22-dev libv4l-dev liblapack-dev libopenblas-dev \
libeigen3-dev libopencv-dev nlohmann-json3-dev

- name: Install dependencies for ubuntu 22.04
if: matrix.os == 'ubuntu-22.04'
run: sudo apt-get update && sudo apt-get install -y libx11-dev libdc1394-dev libv4l-dev liblapack-dev libopenblas-dev libeigen3-dev libopencv-dev nlohmann-json3-dev
run: sudo apt-get update && sudo apt-get install -y libx11-dev libdc1394-dev libv4l-dev liblapack-dev libopenblas-dev \
libeigen3-dev libopencv-dev nlohmann-json3-dev

- name: Clone visp-images
env:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/valgrind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ jobs:
run: lsb_release -a

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libx11-dev libdc1394-dev libv4l-dev liblapack-dev libopenblas-dev libeigen3-dev libopencv-dev nlohmann-json3-dev valgrind
run: sudo apt-get update && sudo apt-get install -y libx11-dev libdc1394-dev libv4l-dev liblapack-dev libopenblas-dev \
libeigen3-dev libopencv-dev nlohmann-json3-dev valgrind

- name: Clone visp-images
env:
Expand Down

0 comments on commit 2a98324

Please sign in to comment.