Browse Source

improve ci

ruki 3 years ago
parent
commit
771d6a9d1e

+ 3 - 0
.github/workflows/android.yml

@@ -16,6 +16,9 @@ jobs:
 
     runs-on: ${{ matrix.os }}
 
+    concurrency:
+        group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Android-${{ matrix.arch }}-${{ matrix.ndk_sdkver }}
+        cancel-in-progress: true
     steps:
       - uses: actions/checkout@v1
       - uses: xmake-io/github-action-setup-xmake@v1

+ 3 - 0
.github/workflows/archlinux.yml

@@ -15,6 +15,9 @@ jobs:
     container: archlinux:base-devel
     runs-on: ${{ matrix.os }}
 
+    concurrency:
+        group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Archlinux-${{ matrix.kind }}
+        cancel-in-progress: true
     steps:
       - name: Installation
         run: |

+ 3 - 0
.github/workflows/cross_musl.yml

@@ -14,6 +14,9 @@ jobs:
 
     runs-on: ${{ matrix.os }}
 
+    concurrency:
+        group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Cross-Musl-${{ matrix.cross }}
+        cancel-in-progress: true
     steps:
       - uses: actions/checkout@v1
       - uses: xmake-io/github-action-setup-xmake@v1

+ 3 - 0
.github/workflows/fedora.yml

@@ -15,6 +15,9 @@ jobs:
     runs-on: ${{ matrix.os }}
     container: fedora:latest
 
+    concurrency:
+        group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Fedora-${{ matrix.kind }}
+        cancel-in-progress: true
     steps:
       - name: Installation
         run: |

+ 3 - 0
.github/workflows/freebsd.yml

@@ -15,6 +15,9 @@ jobs:
 
     runs-on: ${{ matrix.os }}
 
+    concurrency:
+        group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-FreeBSD-${{ matrix.kind }}
+        cancel-in-progress: true
     steps:
       - uses: actions/checkout@v1
 

+ 3 - 0
.github/workflows/iphoneos.yml

@@ -13,6 +13,9 @@ jobs:
 
     runs-on: ${{ matrix.os }}
 
+    concurrency:
+        group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-iPhoneOS
+        cancel-in-progress: true
     steps:
       - uses: actions/checkout@v1
       - uses: xmake-io/github-action-setup-xmake@v1

+ 3 - 0
.github/workflows/macos.yml

@@ -14,6 +14,9 @@ jobs:
 
     runs-on: ${{ matrix.os }}
 
+    concurrency:
+        group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-macOS-${{ matrix.kind }}
+        cancel-in-progress: true
     steps:
       - uses: actions/checkout@v1
       - uses: xmake-io/github-action-setup-xmake@v1

+ 3 - 0
.github/workflows/mingw_macos.yml

@@ -14,6 +14,9 @@ jobs:
 
     runs-on: ${{ matrix.os }}
 
+    concurrency:
+        group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-MingW-macOS-${{ matrix.kind }}
+        cancel-in-progress: true
     steps:
       - uses: actions/checkout@v1
       - uses: xmake-io/github-action-setup-xmake@v1

+ 3 - 0
.github/workflows/mingw_msys2.yml

@@ -18,6 +18,9 @@ jobs:
             { msystem: MINGW32, kind: shared, arch: i686,   prefix: /mingw32 }
         ]
 
+    concurrency:
+        group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-MSYS2_MINGW-${{ matrix.msystem }}-${{ matrix.kind }}-${{ matrix.arch }}
+        cancel-in-progress: true
     steps:
 
       - uses: actions/checkout@v1

+ 3 - 0
.github/workflows/ubuntu.yml

@@ -14,6 +14,9 @@ jobs:
 
     runs-on: ${{ matrix.os }}
 
+    concurrency:
+        group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Linux-${{ matrix.kind }}
+        cancel-in-progress: true
     steps:
       - uses: actions/checkout@v1
       - uses: xmake-io/github-action-setup-xmake@v1

+ 3 - 0
.github/workflows/ubuntu_clang.yml

@@ -14,6 +14,9 @@ jobs:
 
     runs-on: ${{ matrix.os }}
 
+    concurrency:
+        group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Linux-Clang
+        cancel-in-progress: true
     steps:
       - uses: actions/checkout@v1
       - uses: xmake-io/github-action-setup-xmake@v1

+ 3 - 0
.github/workflows/windows.yml

@@ -17,6 +17,9 @@ jobs:
 
     runs-on: ${{ matrix.os }}
 
+    concurrency:
+        group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Windows-${{ matrix.os }}-${{ matrix.kind }}-${{ matrix.os }}-${{ matrix.vs_runtime }}
+        cancel-in-progress: true
     steps:
       - uses: actions/checkout@v1
       - uses: xmake-io/github-action-setup-xmake@v1