Compile bloaty in action (#1767)
This commit is contained in:
27
.github/workflows/pr-bloaty.yml
vendored
27
.github/workflows/pr-bloaty.yml
vendored
@@ -29,17 +29,24 @@ jobs:
|
||||
wget -O mbgl-render-legacy "$legacy_download_url"
|
||||
wget -O mbgl-render-main "$main_download_url"
|
||||
|
||||
# because Google is not making a release...
|
||||
# https://github.com/google/bloaty/issues/334
|
||||
- name: Compile Bloaty
|
||||
run: |
|
||||
git clone https://github.com/google/bloaty.git
|
||||
cmake -B bloaty/build -G Ninja -S bloaty
|
||||
cmake --build bloaty/build
|
||||
|
||||
- name: Download legacy and main mbgl-render
|
||||
run: |
|
||||
wget -O mbgl-render-legacy "$legacy_download_url"
|
||||
wget -O mbgl-render-main "$main_download_url"
|
||||
|
||||
- name: Run Bloaty McBloatface on legacy
|
||||
uses: carlosperate/bloaty-action@v1
|
||||
id: bloaty-legacy
|
||||
with:
|
||||
bloaty-args: mbgl-render -- mbgl-render-legacy -n 0 -s vm -d compileunits
|
||||
run: bloaty/build/bloaty mbgl-render -- mbgl-render-legacy -n 0 -s vm -d compileunits > tlus_diff_legacy.txt
|
||||
|
||||
- name: Run Bloaty McBloatface on main
|
||||
uses: carlosperate/bloaty-action@v1
|
||||
id: bloaty-main
|
||||
with:
|
||||
bloaty-args: mbgl-render -- mbgl-render-main -n 0 -s vm -d compileunits
|
||||
run: bloaty/build/bloaty mbgl-render -- mbgl-render-main -n 0 -s vm -d compileunits > tlus_diff_main.txt
|
||||
|
||||
- name: Prepare Bloaty message
|
||||
run: |
|
||||
@@ -47,11 +54,11 @@ jobs:
|
||||
echo "# Bloaty Results 🐋"
|
||||
echo '<details><summary>Compared to d38709084a9865fe0bb8300aec70ebf8243b3d43</summary>'
|
||||
echo '```'
|
||||
${{ steps.bloaty-legacy.outputs.bloaty-output }}
|
||||
cat tlus_diff_legacy.txt
|
||||
echo '```</details>'
|
||||
echo '<details><summary>Compared to main</summary>'
|
||||
echo '```'
|
||||
${{ steps.bloaty-main.outputs.bloaty-output }}
|
||||
cat tlus_diff_main.txt
|
||||
echo '```</details>'
|
||||
} >> message.md
|
||||
|
||||
|
||||
Reference in New Issue
Block a user