[feat] UDS Programming Flow #6308
This file contains 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: Size History | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
analyze: | |
runs-on: ubuntu-22.04 | |
env: | |
CARGO_INCREMENTAL: 0 | |
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse | |
PR_TITLE: ${{github.event.pull_request.title}} | |
PR_BASE_COMMIT: ${{github.event.pull_request.base.sha}} | |
GIT_AUTHOR_NAME: ${{github.event.pull_request.user.login}} | |
GIT_AUTHOR_EMAIL: ${{github.event.pull_request.user.id}}+${{github.event.pull_request.user.login}}@users.noreply.github.com | |
GIT_COMMITTER_NAME: ${{github.event.pull_request.user.login}} | |
GIT_COMMITTER_EMAIL: ${{github.event.pull_request.user.id}}+${{github.event.pull_request.user.login}}@users.noreply.github.com | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Pull dpe submodule | |
run: | | |
git submodule update --init dpe | |
- name: Configure actions-cache environment variables | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); | |
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); | |
- name: Run size analysis (look at workflow "Summary" tab for results) | |
run: | | |
cargo run --release -p caliptra-size-history |