Skip to content

Commit

Permalink
ci(build-and-test-differential): visualize build times
Browse files Browse the repository at this point in the history
Signed-off-by: M. Fatih Cırıt <mfc@autoware.org>
  • Loading branch information
xmfcx committed Dec 14, 2024
1 parent 9ff1c38 commit 873bdb7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/actions/build-and-test-differential/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ runs:
shell: bash

- name: Build
id: build
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
uses: autowarefoundation/autoware-github-actions/colcon-build@v1
with:
Expand All @@ -87,6 +88,22 @@ runs:
run: du -sh ${CCACHE_DIR} && ccache -s
shell: bash

- uses: actions/upload-artifact@v4
id: upload-artifact-treemap

Check warning on line 92 in .github/actions/build-and-test-differential/action.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (treemap)
if: ${{ steps.build.outputs.build-time-treemap-path != '' }}

Check warning on line 93 in .github/actions/build-and-test-differential/action.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (treemap)
with:
name: build-time-visualization-treemap

Check warning on line 95 in .github/actions/build-and-test-differential/action.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (treemap)
path: ${{ steps.build.outputs.build-time-treemap-path }}

Check warning on line 96 in .github/actions/build-and-test-differential/action.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (treemap)

- name: Visualize build time treemap

Check warning on line 98 in .github/actions/build-and-test-differential/action.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (treemap)
if: ${{ steps.build.outputs.build-time-treemap-path != '' }}
run: |
echo "## Build Time Treemap Visualization" >> $GITHUB_STEP_SUMMARY

Check warning on line 101 in .github/actions/build-and-test-differential/action.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (Treemap)
echo "" >> $GITHUB_STEP_SUMMARY
echo ${{ steps.upload-artifact-treemap.outputs.artifact-url }} >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
shell: bash

- name: Test
id: test
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
Expand Down

0 comments on commit 873bdb7

Please sign in to comment.