]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-114788: Do not run JIT workflow on unrelated changes (#114789)
authorNikita Sobolev <mail@sobolevn.me>
Wed, 31 Jan 2024 19:51:18 +0000 (22:51 +0300)
committerGitHub <noreply@github.com>
Wed, 31 Jan 2024 19:51:18 +0000 (12:51 -0700)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
.github/workflows/jit.yml

index 3da729191812551c57d65310bb0c078c42a556b8..22e0bdba53ffd6f8baa79eb694c29a2031ac3582 100644 (file)
@@ -1,10 +1,19 @@
 name: JIT
 on:
   pull_request:
-    paths: '**jit**'
+    paths:
+      - '**jit**'
+      - 'Python/bytecodes.c'
   push:
-    paths: '**jit**'
+    paths:
+      - '**jit**'
+      - 'Python/bytecodes.c'
   workflow_dispatch:
+
+concurrency:
+  group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   jit:
     name: ${{ matrix.target }} (${{ matrix.debug && 'Debug' || 'Release' }})