Skip to content

Commit

Permalink
use concurrency for cancelling previous ci jobs (#3405)
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui authored Dec 7, 2021
1 parent 426e564 commit 8916d1e
Show file tree
Hide file tree
Showing 47 changed files with 146 additions and 272 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/android-armv7-cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@ on:
- 'src/*'
- 'src/layer/*'
- 'src/layer/arm/**'
concurrency:
group: android-armv7-cpu-${{ github.ref }}
cancel-in-progress: true
jobs:
android-armv7:
runs-on: ubuntu-latest
steps:
- name: cancel-previous-runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
- name: build
run: |
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/android-armv7-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@ on:
- 'src/layer/*'
- 'src/layer/arm/**'
- 'src/layer/vulkan/**'
concurrency:
group: android-armv7-gpu-${{ github.ref }}
cancel-in-progress: true
jobs:
android-armv7-gpu:
runs-on: ubuntu-latest
steps:
- name: cancel-previous-runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
with:
submodules: true
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/android-armv8-cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@ on:
- 'src/*'
- 'src/layer/*'
- 'src/layer/arm/**'
concurrency:
group: android-armv8-cpu-${{ github.ref }}
cancel-in-progress: true
jobs:
android-aarch64:
runs-on: ubuntu-latest
steps:
- name: cancel-previous-runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
- name: build
run: |
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/android-armv8-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@ on:
- 'src/layer/*'
- 'src/layer/arm/**'
- 'src/layer/vulkan/**'
concurrency:
group: android-armv8-gpu-${{ github.ref }}
cancel-in-progress: true
jobs:
android-aarch64-gpu:
runs-on: ubuntu-latest
steps:
- name: cancel-previous-runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
with:
submodules: true
Expand Down Expand Up @@ -55,10 +54,6 @@ jobs:
android-aarch64-gpu-ndk-r16b:
runs-on: ubuntu-latest
steps:
- name: cancel-previous-runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
with:
submodules: true
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/android-x64-cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@ on:
- 'src/*'
- 'src/layer/*'
- 'src/layer/x86/**'
concurrency:
group: android-x64-cpu-${{ github.ref }}
cancel-in-progress: true
jobs:
android-x86_64:
runs-on: ubuntu-latest
steps:
- name: cancel-previous-runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
- name: build
run: |
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/android-x64-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@ on:
- 'src/layer/*'
- 'src/layer/x86/**'
- 'src/layer/vulkan/**'
concurrency:
group: android-x64-gpu-${{ github.ref }}
cancel-in-progress: true
jobs:
android-x86_64-gpu:
runs-on: ubuntu-latest
steps:
- name: cancel-previous-runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
with:
submodules: true
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/android-x86-cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@ on:
- 'src/*'
- 'src/layer/*'
- 'src/layer/x86/**'
concurrency:
group: android-x86-cpu-${{ github.ref }}
cancel-in-progress: true
jobs:
android-x86:
runs-on: ubuntu-latest
steps:
- name: cancel-previous-runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
- name: build
run: |
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/android-x86-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@ on:
- 'src/layer/*'
- 'src/layer/x86/**'
- 'src/layer/vulkan/**'
concurrency:
group: android-x86-gpu-${{ github.ref }}
cancel-in-progress: true
jobs:
android-x86-gpu:
runs-on: ubuntu-latest
steps:
- name: cancel-previous-runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
with:
submodules: true
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/code-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: code-format

on: [push, pull_request, pull_request_target]

concurrency:
group: code-format-${{ github.ref }}
cancel-in-progress: true

jobs:
code-format:
runs-on: ubuntu-20.04
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ on:
schedule:
- cron: '0 20 * * 4'

concurrency:
group: CodeQL-${{ github.ref }}
cancel-in-progress: true

jobs:
analyze:
name: Analyze
Expand All @@ -31,10 +35,6 @@ jobs:
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection

steps:
- name: cancel-previous-runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout repository
uses: actions/checkout@v2
with:
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/elf-riscv32-cpu-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@ on:
- 'src/layer/*'
- 'src/layer/riscv/**'
- 'tests/**'
concurrency:
group: elf-riscv32-cpu-gcc-${{ github.ref }}
cancel-in-progress: true
jobs:
newlib-rv32imc-gcc:
runs-on: ubuntu-20.04
steps:
- name: cancel-previous-runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2

- name: cache-riscv
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/elf-riscv64-cpu-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@ on:
- 'src/layer/*'
- 'src/layer/riscv/**'
- 'tests/**'
concurrency:
group: elf-riscv64-cpu-gcc-${{ github.ref }}
cancel-in-progress: true
jobs:
newlib-rv64gc-gcc:
runs-on: ubuntu-20.04
steps:
- name: cancel-previous-runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2

- name: cache-riscv
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/ios-arm64-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,15 @@ on:
- 'src/layer/*'
- 'src/layer/arm/**'
- 'src/layer/vulkan/**'
concurrency:
group: ios-arm64-gpu-${{ github.ref }}
cancel-in-progress: true
env:
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer
jobs:
ios-iphone-os-gpu:
runs-on: macos-latest
steps:
- name: cancel-previous-runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
with:
submodules: true
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/ios-cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,15 @@ on:
- 'src/*'
- 'src/layer/*'
- 'src/layer/arm/**'
concurrency:
group: ios-cpu-${{ github.ref }}
cancel-in-progress: true
env:
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer
jobs:
ios-iphone-os:
runs-on: macos-latest
steps:
- name: cancel-previous-runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
- name: cache-openmp
id: cache-openmp
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/ios-simulator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,15 @@ on:
- 'src/*'
- 'src/layer/*'
- 'src/layer/x86/**'
concurrency:
group: ios-simulator-${{ github.ref }}
cancel-in-progress: true
env:
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer
jobs:
ios-iphone-simulator:
runs-on: macos-latest
steps:
- name: cancel-previous-runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
- name: cache-openmp
id: cache-openmp
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/linux-aarch64-cpu-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@ on:
- 'src/layer/*'
- 'src/layer/arm/**'
- 'tests/**'
concurrency:
group: linux-aarch64-cpu-gcc-${{ github.ref }}
cancel-in-progress: true
jobs:
linux-gcc:
runs-on: ubuntu-20.04
steps:
- name: cancel-previous-runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2

- name: cache-qemu
Expand Down Expand Up @@ -84,10 +83,6 @@ jobs:
linux-gcc-arm82:
runs-on: ubuntu-20.04
steps:
- name: cancel-previous-runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2

- name: cache-qemu
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/linux-arm-cpu-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@ on:
- 'src/layer/*'
- 'src/layer/arm/**'
- 'tests/**'
concurrency:
group: linux-arm-cpu-gcc-${{ github.ref }}
cancel-in-progress: true
jobs:
linux-gcc-arm:
runs-on: ubuntu-20.04
steps:
- name: cancel-previous-runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2

- name: cache-qemu
Expand Down Expand Up @@ -86,10 +85,6 @@ jobs:
linux-gcc-armhf:
runs-on: ubuntu-20.04
steps:
- name: cancel-previous-runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2

- name: cache-qemu
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/linux-mips-cpu-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@ on:
- 'src/layer/*'
- 'src/layer/mips/**'
- 'tests/**'
concurrency:
group: linux-mips-cpu-gcc-${{ github.ref }}
cancel-in-progress: true
jobs:
linux-gcc-mipsel:
runs-on: ubuntu-20.04
steps:
- name: cancel-previous-runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2

- name: cache-qemu
Expand Down Expand Up @@ -75,10 +74,6 @@ jobs:
linux-gcc-mipsisa32r6el:
runs-on: ubuntu-20.04
steps:
- name: cancel-previous-runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2

- name: cache-qemu
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/linux-mips64-cpu-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@ on:
- 'src/layer/*'
- 'src/layer/mips/**'
- 'tests/**'
concurrency:
group: linux-mips64-cpu-gcc-${{ github.ref }}
cancel-in-progress: true
jobs:
linux-gcc-mips64el:
runs-on: ubuntu-20.04
steps:
- name: cancel-previous-runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2

- name: cache-qemu
Expand Down Expand Up @@ -75,10 +74,6 @@ jobs:
linux-gcc-mipsisa64r6el:
runs-on: ubuntu-20.04
steps:
- name: cancel-previous-runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2

- name: cache-qemu
Expand Down
Loading

0 comments on commit 8916d1e

Please sign in to comment.