Skip to content

Commit 2c4ec8f

Browse files
ci: add max-parallel config to workflows
1 parent 259148d commit 2c4ec8f

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

Diff for: .github/workflows/integration.yml

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ jobs:
66
runs-on: ubuntu-latest
77
name: ${{ matrix.integration }}
88
strategy:
9+
# https://help.github.com/en/actions/getting-started-with-github-actions/about-github-actions#usage-limits
10+
# There's a limit of 60 concurrent jobs across all repos in the rust-lang organization.
11+
# In order to prevent overusing too much of that 60 limit, we throttle the
12+
# number of rustfmt jobs that will run concurrently.
13+
max-parallel: 4
914
fail-fast: false
1015
matrix:
1116
integration: [

Diff for: .github/workflows/linux.yml

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ jobs:
66
runs-on: ubuntu-latest
77
name: (${{ matrix.target }}, ${{ matrix.channel }}, ${{ matrix.cfg-release-channel }})
88
strategy:
9+
# https://help.github.com/en/actions/getting-started-with-github-actions/about-github-actions#usage-limits
10+
# There's a limit of 60 concurrent jobs across all repos in the rust-lang organization.
11+
# In order to prevent overusing too much of that 60 limit, we throttle the
12+
# number of rustfmt jobs that will run concurrently.
13+
max-parallel: 1
914
fail-fast: false
1015
matrix:
1116
target: [

Diff for: .github/workflows/windows.yml

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ jobs:
66
runs-on: windows-latest
77
name: (${{ matrix.target }}, ${{ matrix.channel }})
88
strategy:
9+
# https://help.github.com/en/actions/getting-started-with-github-actions/about-github-actions#usage-limits
10+
# There's a limit of 60 concurrent jobs across all repos in the rust-lang organization.
11+
# In order to prevent overusing too much of that 60 limit, we throttle the
12+
# number of rustfmt jobs that will run concurrently.
13+
max-parallel: 1
914
fail-fast: false
1015
matrix:
1116
target: [

0 commit comments

Comments
 (0)