Преглед изворни кода

ci: apply concurrency limit for github workflows (#6243)

Minsoo Cheong пре 1 година
родитељ
комит
ee804f6223

+ 4 - 0
.github/workflows/build.yml

@@ -15,6 +15,10 @@ on:
     types: [opened, synchronize, reopened]
     types: [opened, synchronize, reopened]
     paths: ['**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m']
     paths: ['**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m']
 
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 env:
 env:
   BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
   BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
   GGML_NLOOP: 3
   GGML_NLOOP: 3

+ 4 - 0
.github/workflows/code-coverage.yml

@@ -5,6 +5,10 @@ env:
   GGML_NLOOP: 3
   GGML_NLOOP: 3
   GGML_N_THREADS: 1
   GGML_N_THREADS: 1
 
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
 jobs:
   run:
   run:
     runs-on: ubuntu-20.04
     runs-on: ubuntu-20.04

+ 4 - 0
.github/workflows/docker.yml

@@ -15,6 +15,10 @@ on:
     branches:
     branches:
       - master
       - master
 
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
 jobs:
   push_to_registry:
   push_to_registry:
     name: Push Docker image to Docker Hub
     name: Push Docker image to Docker Hub

+ 4 - 0
.github/workflows/editorconfig.yml

@@ -14,6 +14,10 @@ on:
     branches:
     branches:
       - master
       - master
 
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
 jobs:
   editorconfig:
   editorconfig:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest

+ 4 - 0
.github/workflows/nix-ci-aarch64.yml

@@ -17,6 +17,10 @@ on:
     types: [opened, synchronize, reopened]
     types: [opened, synchronize, reopened]
     paths: ['**/*.nix', 'flake.lock']
     paths: ['**/*.nix', 'flake.lock']
 
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
 jobs:
   nix-build-aarch64:
   nix-build-aarch64:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest

+ 4 - 0
.github/workflows/nix-ci.yml

@@ -8,6 +8,10 @@ on:
   pull_request:
   pull_request:
     types: [opened, synchronize, reopened]
     types: [opened, synchronize, reopened]
 
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
 jobs:
   nix-eval:
   nix-eval:
     strategy:
     strategy:

+ 4 - 0
.github/workflows/python-check-requirements.yml

@@ -16,6 +16,10 @@ on:
       - 'requirements.txt'
       - 'requirements.txt'
       - 'requirements/*.txt'
       - 'requirements/*.txt'
 
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
 jobs:
   python-check-requirements:
   python-check-requirements:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest

+ 4 - 0
.github/workflows/python-lint.yml

@@ -2,6 +2,10 @@ name: flake8 Lint
 
 
 on: [push, pull_request]
 on: [push, pull_request]
 
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
 jobs:
   flake8-lint:
   flake8-lint:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest

+ 4 - 0
.github/workflows/server.yml

@@ -18,6 +18,10 @@ on:
   schedule:
   schedule:
     -  cron: '0 0 * * *'
     -  cron: '0 0 * * *'
 
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
 jobs:
   server:
   server:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest

+ 4 - 0
.github/workflows/zig-build.yml

@@ -6,6 +6,10 @@ on:
     branches:
     branches:
       - master
       - master
 
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
 jobs:
   build:
   build:
     strategy:
     strategy: