enhance: [skip-e2e] auto cancel stale workflows (#29145) (#29193)

/kind improvement
pr: #29145

---------

Signed-off-by: longjiquan <jiquan.long@zilliz.com>
This commit is contained in:
Jiquan Long 2024-01-07 20:06:51 +08:00 committed by GitHub
parent 9e7974a2c6
commit 03a375ac82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 30 additions and 1 deletions

View File

@ -27,6 +27,10 @@ on:
- .golangci.yml
- rules.go
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
ubuntu:
name: Code Checker AMD64 Ubuntu 20.04

View File

@ -24,6 +24,10 @@ on:
- go.mod
- go.sum
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
mac:
name: Code Checker MacOS 12

View File

@ -35,6 +35,10 @@ on:
- '!**.md'
- '!build/ci/jenkins/**'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
Build:
name: Build and test AMD64 Ubuntu ${{ matrix.ubuntu }}

View File

@ -16,6 +16,10 @@ on:
- '.github/workflows/publish-builder.yaml'
- '!**.md'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
publish-builder:
name: ${{ matrix.arch }} ${{ matrix.os }}

View File

@ -16,6 +16,10 @@ on:
- '.github/workflows/publish-gpu-builder.yaml'
- '!**.md'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
publish-gpu-builder:
name: ${{ matrix.arch }} ${{ matrix.os }}

View File

@ -17,6 +17,10 @@ on:
- '.github/workflows/publish-krte-images.yaml'
- '!**.md'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
publish-krte-images:
name: KRTE

View File

@ -18,6 +18,10 @@ on:
- '.github/workflows/publish-test-images.yaml'
- '!**.md'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
publish-pytest-images:
name: PyTest

View File

@ -23,8 +23,9 @@ RUN pip3 install conan==1.61.0
RUN echo "target arch $TARGETARCH"
RUN wget -qO- "https://cmake.org/files/v3.24/cmake-3.24.4-linux-`uname -m`.tar.gz" | tar --strip-components=1 -xz -C /usr/local
# https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md
RUN mkdir /opt/vcpkg && \
wget -qO- vcpkg.tar.gz https://github.com/microsoft/vcpkg/archive/master.tar.gz | tar --strip-components=1 -xz -C /opt/vcpkg && \
wget -qO- vcpkg.tar.gz https://github.com/microsoft/vcpkg/archive/refs/tags/2023.11.20.tar.gz | tar --strip-components=1 -xz -C /opt/vcpkg && \
rm -rf vcpkg.tar.gz
ENV VCPKG_FORCE_SYSTEM_BINARIES 1