fix: align FreeList Debug representation #1186
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: Compare contract sizes with master | |
| on: | |
| issue_comment: | |
| types: | |
| - created | |
| jobs: | |
| generate_report: | |
| runs-on: ubuntu-latest | |
| if: ${{ (github.event.issue.pull_request) && (github.event.comment.body == '/compare') }} | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Checkout Pull Request | |
| run: gh pr checkout ${{ github.event.issue.number }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Install cargo-near CLI (dependency for docker builds in generate report) | |
| run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/download/cargo-near-v0.14.0/cargo-near-installer.sh | sh | |
| - name: Generate report | |
| run: | | |
| yes | pip install GitPython | |
| EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64) | |
| echo "REPORT<<$EOF" >> "$GITHUB_ENV" | |
| ci/compare_sizes/compare_sizes.py >> "$GITHUB_ENV" | |
| echo "$EOF" >> "$GITHUB_ENV" | |
| - name: Submit report | |
| if: ${{ success() }} | |
| uses: actions/github-script@v4 | |
| with: | |
| script: | | |
| github.issues.createComment({ | |
| issue_number: context.issue.number, | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| body: process.env.REPORT, | |
| }); | |
| - name: Notify about failure | |
| if: ${{ failure() }} | |
| uses: actions/github-script@v4 | |
| with: | |
| script: | | |
| github.issues.createComment({ | |
| issue_number: context.issue.number, | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| body: 'Failed to generate size comparison report! See the failed CI job for more details.', | |
| }); |