Skip to content

Commit 14f6faa

Browse files
committed
WIP
1 parent 73079e9 commit 14f6faa

6 files changed

+25
-131
lines changed

.github/actions/workflow-run-job-linux/action.yml

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ inputs:
1515
runs:
1616
using: "composite"
1717
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.
1820
- name: Checkout repo
1921
uses: actions/checkout@v3
2022
with:

.github/workflows/ci-workflow-pull-request.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -60,22 +60,27 @@ jobs:
6060
${{ env.pr_worflow }}
6161
${{ env.nightly_workflow }}
6262
63-
run-workflow:
64-
name: Run workflow
63+
dispatch-groups-linux-two-stage:
64+
name: ${{ matrix.name }}
6565
needs: build-workflow
6666
permissions:
6767
id-token: write
6868
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
7074
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]) }}
7277

7378
verify-workflow:
7479
name: Verify and summarize workflow results
7580
if: ${{ always() && !cancelled() }}
7681
needs:
7782
- build-workflow
78-
- run-workflow
83+
- dispatch-groups-linux-two-stage
7984
permissions:
8085
contents: read
8186
pull-requests: write # Posts a comment back to the PR.

.github/workflows/workflow-dispatch-job-array-linux.yml

-51
This file was deleted.

.github/workflows/workflow-dispatch-job-single-linux.yml

-49
This file was deleted.

.github/workflows/workflow-dispatch-two-stage-linux.yml

+13
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ jobs:
3535
env:
3636
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }}
3737
steps:
38+
- name: Checkout repo
39+
uses: actions/checkout@v3
40+
with:
41+
persist-credentials: false
42+
- name: Debug
43+
shell: bash
44+
run: |
45+
tree /__w/
46+
tree ~
3847
- name: Run job
3948
uses: ./.github/actions/workflow-run-job-linux.yml
4049
with:
@@ -62,6 +71,10 @@ jobs:
6271
env:
6372
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }}
6473
steps:
74+
- name: Checkout repo
75+
uses: actions/checkout@v3
76+
with:
77+
persist-credentials: false
6578
- name: Run job
6679
uses: ./.github/actions/workflow-run-job-linux.yml
6780
with:

.github/workflows/workflow-dispatch.yml

-26
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,3 @@ on:
1212
required: true
1313

1414
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"

0 commit comments

Comments
 (0)