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 <ron@hybridgroup.com>
Этот коммит содержится в:
родитель
c6add1e769
коммит
22d70604d8
1 изменённых файлов: 10 добавлений и 10 удалений
20
.github/workflows/sizediff.yml
предоставленный
20
.github/workflows/sizediff.yml
предоставленный
|
@ -55,22 +55,22 @@ jobs:
|
||||||
- name: Save HEAD
|
- name: Save HEAD
|
||||||
run: git branch github-actions-saved-HEAD 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
|
# 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
|
- name: Build tinygo binary for the PR branch
|
||||||
run: go install
|
run: go install
|
||||||
- name: Determine binary sizes on the PR branch
|
- name: Determine binary sizes on the PR branch
|
||||||
run: (cd drivers; make smoke-test XTENSA=0 | tee sizes-pr.txt)
|
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
|
# Create comment
|
||||||
# TODO: add a summary, something like:
|
# TODO: add a summary, something like:
|
||||||
# - overall size difference (percent)
|
# - overall size difference (percent)
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче