Skip to content

Commit

Permalink
Merge pull request #161 from stadiamaps/feat/ci/concurrency-tags
Browse files Browse the repository at this point in the history
Add concurrency groups to all PR related CI
  • Loading branch information
ianthetechie authored Jul 20, 2024
2 parents 2e3b759 + 5c1c604 commit b8d925a
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
build:

runs-on: macos-13
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-android-build
cancel-in-progress: true
permissions:
contents: read
packages: read
Expand Down Expand Up @@ -47,6 +50,9 @@ jobs:
check-ktfmt:

runs-on: macos-13
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-android-ktfmt
cancel-in-progress: true
permissions:
contents: read
packages: read
Expand Down Expand Up @@ -84,6 +90,9 @@ jobs:
test:

runs-on: macos-13
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-android-test
cancel-in-progress: true
permissions:
contents: read
packages: read
Expand Down Expand Up @@ -130,6 +139,9 @@ jobs:
verify-snapshots:

runs-on: macos-13
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-android-snapshots
cancel-in-progress: true
permissions:
contents: read
packages: read
Expand Down Expand Up @@ -177,6 +189,9 @@ jobs:
connected-check:

runs-on: macos-13
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-android-connected-check
cancel-in-progress: true
permissions:
contents: read
packages: read
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
jobs:
format-lint:
runs-on: macos-14
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-ios-swiftformat
cancel-in-progress: true

steps:
- name: Upgrade swiftformat to latest
Expand All @@ -22,6 +25,9 @@ jobs:

build-ferrostar:
runs-on: macos-14
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-ios-build-lib
cancel-in-progress: true

steps:
- name: Checkout repo
Expand All @@ -40,6 +46,9 @@ jobs:

build-demo:
runs-on: macos-14
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-ios-build-demo
cancel-in-progress: true
needs: build-ferrostar
strategy:
matrix:
Expand Down Expand Up @@ -88,6 +97,9 @@ jobs:

test:
runs-on: macos-14
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-ios-test
cancel-in-progress: true
needs: build-ferrostar
strategy:
matrix:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ env:
jobs:
msrv:
runs-on: macos-14
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-rust-msrv
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@v2
Expand All @@ -25,6 +28,9 @@ jobs:
semver-checks:
runs-on: macos-14
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-rust-semver
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -36,6 +42,9 @@ jobs:

rustfmt:
runs-on: macos-14
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-rust-rustfmt
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -45,6 +54,9 @@ jobs:

build:
runs-on: macos-14
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-rust-build
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: Cargo Build
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/wasm-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ env:
jobs:
build:
runs-on: macos-14
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-wasm-build
cancel-in-progress: true
steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit b8d925a

Please sign in to comment.