File tree 6 files changed +22
-133
lines changed
actions/workflow-run-job-linux
6 files changed +22
-133
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ inputs:
15
15
runs :
16
16
using : " composite"
17
17
steps :
18
+ # TODO We currently require a checkout to the default path before invoking this action.
19
+ # Clean this up so we only do a single checkout.
18
20
- name : Checkout repo
19
21
uses : actions/checkout@v3
20
22
with :
Original file line number Diff line number Diff line change @@ -60,22 +60,27 @@ jobs:
60
60
${{ env.pr_worflow }}
61
61
${{ env.nightly_workflow }}
62
62
63
- run-workflow :
64
- name : Run workflow
63
+ dispatch-groups-linux-two-stage :
64
+ name : ${{ matrix.name }}
65
65
needs : build-workflow
66
66
permissions :
67
67
id-token : write
68
68
contents : read
69
- uses : ./.github/workflows/workflow-dispatch.yml
69
+ strategy :
70
+ fail-fast : false
71
+ matrix :
72
+ name : ${{ fromJSON(needs.build-workflow.outputs.workflow)['linux_two_stage']['keys'] }}
73
+ uses : ./.github/workflows/workflow-dispatch-two-stage-group-linux.yml
70
74
with :
71
- workflow : ${{ needs.build-workflow.outputs.workflow }}
75
+ name : ${{ matrix.name }}
76
+ pc-array : ${{ toJSON(fromJSON(needs.build-workflow.outputs.workflow)['linux_two_stage']['jobs'][matrix.name]) }}
72
77
73
78
verify-workflow :
74
79
name : Verify and summarize workflow results
75
80
if : ${{ always() && !cancelled() }}
76
81
needs :
77
82
- build-workflow
78
- - run-workflow
83
+ - dispatch-groups-linux-two-stage
79
84
permissions :
80
85
contents : read
81
86
pull-requests : write # Posts a comment back to the PR.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 35
35
env :
36
36
NVIDIA_VISIBLE_DEVICES : ${{ env.NVIDIA_VISIBLE_DEVICES }}
37
37
steps :
38
+ - name : Checkout repo
39
+ uses : actions/checkout@v3
40
+ with :
41
+ persist-credentials : false
38
42
- name : Run job
39
- uses : ./.github/actions/workflow-run-job-linux.yml
43
+ uses : ./.github/actions/workflow-run-job-linux
40
44
with :
41
45
id : ${{ fromJSON(inputs.producers)[0].id }}
42
46
command : ${{ fromJSON(inputs.producers)[0].command }}
62
66
env :
63
67
NVIDIA_VISIBLE_DEVICES : ${{ env.NVIDIA_VISIBLE_DEVICES }}
64
68
steps :
69
+ - name : Checkout repo
70
+ uses : actions/checkout@v3
71
+ with :
72
+ persist-credentials : false
65
73
- name : Run job
66
- uses : ./.github/actions/workflow-run-job-linux.yml
74
+ uses : ./.github/actions/workflow-run-job-linux
67
75
with :
68
76
id : ${{ matrix.id }}
69
77
command : ${{ matrix.command }}
Original file line number Diff line number Diff line change 12
12
required : true
13
13
14
14
jobs :
15
- dispatch-groups-linux-two-stage :
16
- if : ${{ fromJSON(inputs.workflow)['linux_two_stage']['keys'] }}
17
- name : ${{ matrix.name }}
18
- permissions :
19
- id-token : write
20
- contents : read
21
- strategy :
22
- fail-fast : false
23
- matrix :
24
- include : ${{ fromJSON(inputs.workflow)['linux_two_stage']['keys'] }}
25
- uses : ./.github/workflows/workflow-dispatch-two-stage-group-linux.yml
26
- with :
27
- name : ${{ matrix.name }}
28
- pc-array : ${{ toJSON(fromJSON(inputs.workflow)['linux_two_stage']['jobs'][matrix.name]) }}
29
-
30
- debug-workflow :
31
- name : " Debug workflow-dispatch.yml"
32
- runs-on : ubuntu-latest
33
- steps :
34
- - name : Debug
35
- run : |
36
- echo "Debugging workflow:"
37
- echo "Workflow:\n ${{inputs.workflow }}\n\n"
38
- # echo "Linux Two Stage:\n${{ fromJSON(inputs.workflow)['linux_two_stage'] }}\n\n"
39
- # echo "Keys:\n${{ fromJSON(inputs.workflow)['linux_two_stage']['keys'] }}\n\n"
40
- # echo "Jobs:\n${{ fromJSON(inputs.workflow)['linux_two_stage']['jobs'] }}\n\n"
You can’t perform that action at this time.
0 commit comments