]> granicus.if.org Git - libevent/commitdiff
ci: add ability skip specific workflow
authorAzat Khuzhin <azat@libevent.org>
Sun, 10 Jul 2022 12:10:20 +0000 (15:10 +0300)
committerAzat Khuzhin <azat@libevent.org>
Sun, 10 Jul 2022 12:13:46 +0000 (15:13 +0300)
Public CI workers has pretty high load, and sometimes you need to test
only specific workflow, i.e. windows.

So let's add ability to limit which workflow should be run.

.github/workflows/abi.yml
.github/workflows/coverage.yml
.github/workflows/doxygen.yml
.github/workflows/linux.yml
.github/workflows/macos.yml
.github/workflows/mingw.yml
.github/workflows/windows.yml

index e9fa049d3ff95bb11531a31c99c1f22a23a7c106..450f502b1c414e34716fc4df706bf635cd198fe7 100644 (file)
@@ -16,7 +16,7 @@ jobs:
     ## due to even public registry require some authentication:
     ## - https://github.community/t5/GitHub-Actions/docker-pull-from-public-GitHub-Package-Registry-fail-with-quot/td-p/32782/page/5
     #container: docker.pkg.github.com/azat/docker-images/lvc-debian
-    if: "!contains(github.event.head_commit.message, 'ci skip')"
+    if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'ci/abi skip')"
     strategy:
       fail-fast: false
 
index f23424dc8e636212558b8083aa6aed85d3b09149..a090084d5180adf1184050f9aa35766eea2f5b6f 100644 (file)
@@ -15,7 +15,7 @@ on:
 jobs:
   linux:
     runs-on: ubuntu-18.04
-    if: "!contains(github.event.head_commit.message, 'ci skip')"
+    if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'ci/coverage skip')"
     steps:
       - uses: actions/checkout@v2.0.0
       - name: Cache
index d7d4b7753ee29e2795a2193c38a5dcab50831fbd..14c41af7780bf38b53186066c4b4ff0e21f8e2fb 100644 (file)
@@ -9,7 +9,7 @@ on:
 jobs:
   Doxygen:
     runs-on: ubuntu-18.04
-    if: "!contains(github.event.head_commit.message, 'ci skip')"
+    if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'ci/doxygen skip')"
     strategy:
       fail-fast: false
 
index f11f382fc811409c945c272639fb93ef68bbb8e7..49ecaecd4bbceb27b09557fa1fcd46102ebdcb02 100644 (file)
@@ -21,7 +21,7 @@ on:
 jobs:
   cmake:
     runs-on: ${{ matrix.os }}
-    if: "!contains(github.event.head_commit.message, 'ci skip')"
+    if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'ci/linux skip') && !contains(github.event.head_commit.message, 'ci/linux/cmake skip')"
     strategy:
       fail-fast: false
       matrix:
@@ -148,7 +148,7 @@ jobs:
 
   autotools:
     runs-on: ${{ matrix.os }}
-    if: "!contains(github.event.head_commit.message, 'ci skip')"
+    if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'ci/linux skip') && !contains(github.event.head_commit.message, 'ci/linux/autotools skip')"
     strategy:
       fail-fast: false
       matrix:
index 012922bdbe6866c83c1d3d8e1476674c4532085d..6e3204fe93c033406401bc0423699c1a4ec064f4 100644 (file)
@@ -21,7 +21,7 @@ on:
 jobs:
   cmake:
     runs-on: ${{ matrix.os }}
-    if: "!contains(github.event.head_commit.message, 'ci skip')"
+    if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'ci/macos skip') && !contains(github.event.head_commit.message, 'ci/macos/cmake skip')"
     strategy:
       fail-fast: false
       matrix:
@@ -111,7 +111,7 @@ jobs:
 
   autotools:
     runs-on: ${{ matrix.os }}
-    if: "!contains(github.event.head_commit.message, 'ci skip')"
+    if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'ci/macos skip') && !contains(github.event.head_commit.message, 'ci/macos/autotools skip')"
     strategy:
       fail-fast: false
       matrix:
index b7e5049cc5543693d9e9bfe6333575792223a184..d4eb6b1c2336a737cb2548fb6dd1a252c4a3b3c7 100644 (file)
@@ -21,7 +21,7 @@ on:
 jobs:
   autotools:
     runs-on: windows-2019
-    if: "!contains(github.event.head_commit.message, 'ci skip')"
+    if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'ci/mingw skip') && !contains(github.event.head_commit.message, 'ci/mingw/autotools skip')"
     strategy:
       fail-fast: false
       matrix:
@@ -93,7 +93,7 @@ jobs:
 
   cmake:
     runs-on: windows-2019
-    if: "!contains(github.event.head_commit.message, 'ci skip')"
+    if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'ci/mingw skip') && !contains(github.event.head_commit.message, 'ci/mingw/cmake skip')"
     strategy:
       fail-fast: false
       matrix:
index 22aed75515e9fce6288a434d04ad901a688a5feb..0cbc324b1139355d2c5f4013cbf64bf3847a649c 100644 (file)
@@ -21,7 +21,7 @@ on:
 jobs:
   vs2019:
     runs-on: ${{ matrix.os }}
-    if: "!contains(github.event.head_commit.message, 'ci skip')"
+    if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'ci/windows skip')"
     strategy:
       fail-fast: false
       matrix: