From 22d70604d841aa01319a9b9ff0231763f77fabb4 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Mon, 4 Dec 2023 12:30:34 +0100 Subject: [PATCH] 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 --- .github/workflows/sizediff.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/sizediff.yml b/.github/workflows/sizediff.yml index a1a4d8c4..6af0ba03 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 dev branch - - name: Checkout dev branch - run: 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) + # Compute sizes for the dev branch + - name: Checkout dev branch + 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) + # Create comment # TODO: add a summary, something like: # - overall size difference (percent)