[CI] Implement detailed size metrics #2209
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: SDK Size | |
on: | |
pull_request: | |
workflow_dispatch: | |
push: | |
branches: | |
- develop | |
env: | |
HOMEBREW_NO_INSTALL_CLEANUP: 1 # Disable cleanup for homebrew, we don't need it on CI | |
jobs: | |
sdk_size: | |
name: Metrics | |
runs-on: macos-15 | |
env: | |
GITHUB_TOKEN: '${{ secrets.CI_BOT_GITHUB_TOKEN }}' | |
GITHUB_PR_NUM: ${{ github.event.pull_request.number }} | |
steps: | |
- name: Connect Bot | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.BOT_SSH_PRIVATE_KEY }} | |
- uses: actions/[email protected] | |
- uses: ./.github/actions/bootstrap | |
- name: Run General SDK Size Metrics | |
run: bundle exec fastlane show_frameworks_sizes | |
timeout-minutes: 30 | |
env: | |
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} | |
APPSTORE_API_KEY: ${{ secrets.APPSTORE_API_KEY }} | |
- name: Run Detailed SDK Size Metrics | |
run: bundle exec fastlane size_analyze | |
timeout-minutes: 30 |