diff options
author | deadprogram <[email protected]> | 2023-12-04 12:30:34 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2023-12-04 18:26:00 +0100 |
commit | 22d70604d841aa01319a9b9ff0231763f77fabb4 (patch) | |
tree | b8859bbf5ba382a9a56e69abb6441c9ad0d95eac /.github | |
parent | c6add1e76994af65223299892d4be4c625ad96e4 (diff) | |
download | tinygo-22d70604d841aa01319a9b9ff0231763f77fabb4.tar.gz tinygo-22d70604d841aa01319a9b9ff0231763f77fabb4.zip |
sizediff: cleanup before checkout of branche to allow for new/removed files to be able to still run thru size tests
Signed-off-by: deadprogram <[email protected]>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/sizediff.yml | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/.github/workflows/sizediff.yml b/.github/workflows/sizediff.yml index a1a4d8c4e..6af0ba032 100644 --- a/.github/workflows/sizediff.yml +++ b/.github/workflows/sizediff.yml @@ -55,22 +55,22 @@ jobs: - name: Save HEAD run: git branch github-actions-saved-HEAD HEAD + # Compute sizes for the PR branch + - name: Build tinygo binary for the PR branch + run: go install + - name: Determine binary sizes on the PR branch + run: (cd drivers; make smoke-test XTENSA=0 | tee sizes-pr.txt) + # Compute sizes for the dev branch - name: Checkout dev branch - run: git checkout --no-recurse-submodules `git merge-base HEAD origin/dev` + run: | + git reset --hard origin/dev + git checkout --no-recurse-submodules `git merge-base HEAD origin/dev` - name: Build tinygo binary for the dev branch run: go install - name: Determine binary sizes on the dev branch run: (cd drivers; make smoke-test XTENSA=0 | tee sizes-dev.txt) - # Compute sizes for the PR branch - - name: Checkout PR branch - run: git checkout --no-recurse-submodules github-actions-saved-HEAD - - name: Build tinygo binary for the PR branch - run: go install - - name: Determine binary sizes on the PR branch - run: (cd drivers; make smoke-test XTENSA=0 | tee sizes-pr.txt) - # Create comment # TODO: add a summary, something like: # - overall size difference (percent) |