Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
On-Board Lightning Linux workflows (that are run on PRs) to large run…
…ners based on label (#700) * Try on-boarding to large runner * Auto update version from '0.36.0-dev43' to '0.36.0-dev44' * Remove usage of runner.os in job name * Fix invalid runs-on * Remove usage of runner.os in job name * Trigger CI * Fix inputs.run-on for build&cache kokkos * Trigger CI * Auto update version from '0.36.0-dev45' to '0.36.0-dev46' --------- Co-authored-by: ringo-but-quantum <github-ringo-but-quantum@xanadu.ai> Co-authored-by: Vincent Michaud-Rioux <vincentm@nanoacademic.com>
- Loading branch information
1 parent
05a98ae
commit fdb47f0
Showing
11 changed files
with
121 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Determine Workflow Runner group | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
default_runner: | ||
description: The runner type that is used by the calling workflow by default | ||
required: true | ||
type: string | ||
outputs: | ||
runner_group: | ||
description: The runner all subsequent jobs within the calling workflow should run on | ||
value: ${{ jobs.determine_workflow_runner.outputs.runner_group || inputs.default_runner }} | ||
|
||
env: | ||
LARGE_RUNNER_GROUP_NAME: pl-4-core-large-runner | ||
|
||
jobs: | ||
determine_workflow_runner: | ||
runs-on: >- | ||
${{ | ||
( | ||
github.event_name == 'pull_request' | ||
&& contains(github.event.pull_request.labels.*.name, 'urgent') | ||
) && 'pl-4-core-large-runner' || 'ubuntu-latest' | ||
}} | ||
outputs: | ||
runner_group: ${{ steps.runner_group.outputs.runner_group }} | ||
|
||
steps: | ||
- name: Output Runner Group name | ||
if: >- | ||
${{ | ||
github.event_name == 'pull_request' | ||
&& contains(github.event.pull_request.labels.*.name, 'urgent') | ||
&& startsWith(inputs.default_runner, 'ubuntu') | ||
}} | ||
id: runner_group | ||
run: echo "runner_group=$LARGE_RUNNER_GROUP_NAME" >> $GITHUB_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.