Skip to content

Commit eb426f5

Browse files
committed
Wait for compare build artifacts
1 parent a9417cf commit eb426f5

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

.github/scripts/path_tracer_jenkins.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,18 @@ def resolve(args):
8383
else:
8484
run = json_request("GET", f"https://api.github.com/repos/{REPO}/actions/runs/{args.run_id}", headers)
8585
values = source_values(run, args.build_config, args.scene_set, args.publish)
86+
for config in args.extra_build_config:
87+
config = choice(config, CONFIGS, "extra build config")
88+
wait_workflow_job_artifact(
89+
REPO,
90+
"build-nabla.yml",
91+
BRANCH,
92+
values["sha"],
93+
headers,
94+
"Build",
95+
f"Nabla (windows-2022, msvc-17.13.6, {config})",
96+
f"run-windows-*-msvc-{config}-install",
97+
)
8698
output(values)
8799
print(f"Resolved Build run {values['run_id']} on {BRANCH} at {values['sha']}.")
88100

@@ -327,6 +339,7 @@ def parser():
327339
add_args(resolve_parser, ["github-token", "repository", "event-name"])
328340
add_args(resolve_parser, ["branch", "sha", "run-id"], False, "")
329341
resolve_parser.add_argument("--build-config", default="Release")
342+
resolve_parser.add_argument("--extra-build-config", action="append", default=[])
330343
resolve_parser.add_argument("--scene-set", default="both")
331344
resolve_parser.add_argument("--publish", default="true")
332345
resolve_parser.set_defaults(func=resolve)

.github/workflows/path-tracer-compare-jenkins.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jobs:
6565
--sha "${{ github.sha }}" \
6666
--run-id "${{ inputs.run_id }}" \
6767
--build-config Release \
68+
--extra-build-config RelWithDebInfo \
6869
--scene-set "${{ inputs.scene_set || 'both' }}" \
6970
--publish "${{ inputs.publish }}"
7071

0 commit comments

Comments
 (0)