Skip to content

Commit

Permalink
Post artifact links in the summary
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry Wu committed Apr 24, 2023
1 parent 1fd449b commit 94df187
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1087,3 +1087,29 @@ jobs:
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: "The following jobs failed: ${{ steps.failed_jobs.outputs.failed-jobs }}"
- name: Show useful artifact links
env:
BUILD_DIR_GCS_ARTIFACT: ${{ needs.build_all.outputs.build-dir-gcs-artifact }}
E2E_TEST_ARTIFACTS_GCS_ARTIFACT_DIR: ${{ needs.build_e2e_test_artifacts.outputs.e2e-test-artifacts-gcs-artifact-dir }}
BENCHMARK_TOOLS_GCS_ARTIFACT_DIR: ${{ needs.build_benchmark_tools.outputs.benchmark-tools-gcs-artifact-dir }}
EXECUTION_BENCHMARK_RESULTS_GCS_ARTIFACT_DIR: ${{ needs.execution_benchmarks.outputs.benchmark-results-gcs-artifact-dir }}
COMPILE_STATS_RESULTS_GCS_ARTIFACT: ${{ needs.compilation_benchmarks.outputs.compile-stats-results-gcs-artifact }}
# Github markdown doesn't support non-http hyperlink
# (https://github.com/github/markup/issues/933). So the GCS links are
# shown as plaintext.
run: |
cat <<EOF >> "${GITHUB_STEP_SUMMARY}"
### :link: Useful Artifact Links
- Built compiler/tool binaries: \`${BUILD_DIR_GCS_ARTIFACT}\`
- E2E test artifacts directory: \`${E2E_TEST_ARTIFACTS_GCS_ARTIFACT_DIR}/\`
- Benchmark tool binaries directory: \`${BENCHMARK_TOOLS_GCS_ARTIFACT_DIR}/\`
- Execution benchmark results/traces directory: \`${EXECUTION_BENCHMARK_RESULTS_GCS_ARTIFACT_DIR:-Not run}/\`
- Compilation statistics result: \`${COMPILE_STATS_RESULTS_GCS_ARTIFACT:-Not run}\`
You can list and download \`gs://\` URLs with [gcloud cli](
https://cloud.google.com/sdk/gcloud/reference/storage).
To run benchmarks locally with the CI-built E2E test artifacts, see [IREE Benchmark Suites](
https://github.com/${GITHUB_REPOSITORY}/blob/main/docs/developers/developing_iree/benchmark_suites.md).
EOF

0 comments on commit 94df187

Please sign in to comment.