Skip to content

Commit

Permalink
workflows added concurrency to self-hosted
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Apr 12, 2024
1 parent 376a43a commit 2b5a055
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/analyzers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
- gh-actions
- silverqx-develop

concurrency:
group: tinyorm

jobs:

analyzers:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/vcpkg-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
- gh-actions
- silverqx-develop

concurrency:
group: tinyorm

# I will not remove the build folders before a job execution it's not necessary and
# it will be faster this way. I can still remove them manually if needed or
# if something goes wrong.
Expand Down Expand Up @@ -68,7 +71,7 @@ jobs:
[[ "${{ runner.name }}" == 'merydeye-'* ]] && isSelfHostedRunner='true' || isSelfHostedRunner='false'
echo "TinyIsSelfHostedRunner=$isSelfHostedRunner" >> $GITHUB_ENV
[[ "$isSelfHostedRunner" == 'true' ]] && parallel=4 || parallel=2
[[ "$isSelfHostedRunner" == 'true' ]] && parallel=10 || parallel=2
echo "TinyParallel=$parallel" >> $GITHUB_ENV
tinyormPath=$(realpath ./main)
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/vcpkg-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
- gh-actions
- silverqx-develop

concurrency:
group: tinyorm

# I will not remove the build folders before a job execution it's not necessary and
# it will be faster this way. I can still remove them manually if needed or
# if something goes wrong.
Expand Down Expand Up @@ -63,7 +66,7 @@ jobs:
$isSelfHostedRunner = '${{ runner.name }}'.StartsWith('merydeye-', $true, $null)
"TinyIsSelfHostedRunner=$isSelfHostedRunner" >> $env:GITHUB_ENV
$parallel = $isSelfHostedRunner ? 5 : 2
$parallel = $isSelfHostedRunner ? 10 : 2
"TinyParallel=$parallel" >> $env:GITHUB_ENV
$tinyormPath = Resolve-Path -Path ./main
Expand Down

0 comments on commit 2b5a055

Please sign in to comment.