Skip to content

Commit

Permalink
workflows finished Start Linux runner
Browse files Browse the repository at this point in the history
Start Linux VM runner immediately if there are <=2 matrix combinations
or for the penultimate matrix combination job (to give the runner some
time to resume and connect to the network).

[skip ci]
  • Loading branch information
silverqx committed May 4, 2024
1 parent 547233c commit 5e566ae
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/msys2-ucrt64-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,19 @@ jobs:
DB_MYSQL_USERNAME: ${{ secrets.DB_MYSQL_USERNAME_SELF_MSYS2 }}
TOM_EXAMPLE_ENV: ${{ vars.TOM_EXAMPLE_ENV }}

- name: Prepare Linux runner
# Start Linux VM runner immediately if there are <=2 matrix combinations or for the penultimate
# matrix combination job (to give the runner some time to resume and connect to the network)
- name: Prepare Start Linux runner
id: vm-start-linux-runner
run: >-
$shouldStartRunner =
(${{ strategy.job-total }} -le 2 -and ${{ strategy.job-index }} -eq 0) -or
${{ strategy.job-index }} -eq ${{ strategy.job-total }} - 2 ? 'true' : 'false'
"StartLinuxRunner=shouldStartRunner" >> $env:GITHUB_OUTPUT
- name: Start Linux runner
if: steps.vm-start-linux-runner.outputs.StartLinuxRunner == 'true'
working-directory: E:/dotfiles/bin
run: |
.\Start-TinyORMActions.ps1
Expand Down

0 comments on commit 5e566ae

Please sign in to comment.