summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinsoo Cheong <54794500+mscheong01@users.noreply.github.com>2024-03-23 02:15:06 +0900
committerGitHub <noreply@github.com>2024-03-22 19:15:06 +0200
commitee804f6223777019cf921e0d99cc24669313ab98 (patch)
treef960f1c58cde7f0ecbe98731ea755caad9ce6617
parent80bd33bc2c4be352697dc8473339f25e1085d117 (diff)
ci: apply concurrency limit for github workflows (#6243)
-rw-r--r--.github/workflows/build.yml4
-rw-r--r--.github/workflows/code-coverage.yml4
-rw-r--r--.github/workflows/docker.yml4
-rw-r--r--.github/workflows/editorconfig.yml4
-rw-r--r--.github/workflows/nix-ci-aarch64.yml4
-rw-r--r--.github/workflows/nix-ci.yml4
-rw-r--r--.github/workflows/python-check-requirements.yml4
-rw-r--r--.github/workflows/python-lint.yml4
-rw-r--r--.github/workflows/server.yml4
-rw-r--r--.github/workflows/zig-build.yml4
10 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 469d8116..7711bd8d 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -15,6 +15,10 @@ on:
types: [opened, synchronize, reopened]
paths: ['**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m']
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
GGML_NLOOP: 3
diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml
index 392db8a0..4112518b 100644
--- a/.github/workflows/code-coverage.yml
+++ b/.github/workflows/code-coverage.yml
@@ -5,6 +5,10 @@ env:
GGML_NLOOP: 3
GGML_N_THREADS: 1
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
jobs:
run:
runs-on: ubuntu-20.04
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index 94f9161f..9591bfc2 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -15,6 +15,10 @@ on:
branches:
- master
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
diff --git a/.github/workflows/editorconfig.yml b/.github/workflows/editorconfig.yml
index 0e0993cd..7b2a00c9 100644
--- a/.github/workflows/editorconfig.yml
+++ b/.github/workflows/editorconfig.yml
@@ -14,6 +14,10 @@ on:
branches:
- master
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
jobs:
editorconfig:
runs-on: ubuntu-latest
diff --git a/.github/workflows/nix-ci-aarch64.yml b/.github/workflows/nix-ci-aarch64.yml
index 8d0a3fd7..109a793e 100644
--- a/.github/workflows/nix-ci-aarch64.yml
+++ b/.github/workflows/nix-ci-aarch64.yml
@@ -17,6 +17,10 @@ on:
types: [opened, synchronize, reopened]
paths: ['**/*.nix', 'flake.lock']
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
jobs:
nix-build-aarch64:
runs-on: ubuntu-latest
diff --git a/.github/workflows/nix-ci.yml b/.github/workflows/nix-ci.yml
index 01c5a9d5..8b5b99c8 100644
--- a/.github/workflows/nix-ci.yml
+++ b/.github/workflows/nix-ci.yml
@@ -8,6 +8,10 @@ on:
pull_request:
types: [opened, synchronize, reopened]
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
jobs:
nix-eval:
strategy:
diff --git a/.github/workflows/python-check-requirements.yml b/.github/workflows/python-check-requirements.yml
index b8220599..4092b12f 100644
--- a/.github/workflows/python-check-requirements.yml
+++ b/.github/workflows/python-check-requirements.yml
@@ -16,6 +16,10 @@ on:
- 'requirements.txt'
- 'requirements/*.txt'
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
jobs:
python-check-requirements:
runs-on: ubuntu-latest
diff --git a/.github/workflows/python-lint.yml b/.github/workflows/python-lint.yml
index ea0a05ea..4bdd79c4 100644
--- a/.github/workflows/python-lint.yml
+++ b/.github/workflows/python-lint.yml
@@ -2,6 +2,10 @@ name: flake8 Lint
on: [push, pull_request]
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
jobs:
flake8-lint:
runs-on: ubuntu-latest
diff --git a/.github/workflows/server.yml b/.github/workflows/server.yml
index 65ca7d9c..b74dc5e2 100644
--- a/.github/workflows/server.yml
+++ b/.github/workflows/server.yml
@@ -18,6 +18,10 @@ on:
schedule:
- cron: '0 0 * * *'
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
jobs:
server:
runs-on: ubuntu-latest
diff --git a/.github/workflows/zig-build.yml b/.github/workflows/zig-build.yml
index 68a698ab..cb43954e 100644
--- a/.github/workflows/zig-build.yml
+++ b/.github/workflows/zig-build.yml
@@ -6,6 +6,10 @@ on:
branches:
- master
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
jobs:
build:
strategy: