Skip to content

Commit 979e7a6

Browse files
committed
github: footprint: set ZEPHYR_SDK_INSTALL_DIR after the rebase
The ZEPHYR_SDK_INSTALL_DIR currently tries to read the SDK_VERSION at the PR base ref, but this has only been introduced recently. Move the ZEPHYR_SDK_INSTALL_DIR settings down as part of the build step after the rebase so the file will always be found from now, even on old PRs. Signed-off-by: Fabio Baltieri <[email protected]>
1 parent 1c9be80 commit 979e7a6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/footprint.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ jobs:
3636
ref: ${{ github.event.pull_request.head.sha }}
3737
fetch-depth: 0
3838

39-
- name: Environment Setup
40-
run: |
41-
echo "ZEPHYR_SDK_INSTALL_DIR=/opt/toolchains/zephyr-sdk-$( cat SDK_VERSION )" >> $GITHUB_ENV
42-
4339
- name: west setup
4440
run: |
4541
west init -l . || true
@@ -56,6 +52,9 @@ jobs:
5652
git remote -v
5753
git rebase origin/${BASE_REF}
5854
git checkout -b this_pr
55+
56+
export ZEPHYR_SDK_INSTALL_DIR=/opt/toolchains/zephyr-sdk-$( cat SDK_VERSION )
57+
5958
west update
6059
west build -b frdm_k64f tests/benchmarks/footprints -t ram_report
6160
cp build/ram.json ram2.json

0 commit comments

Comments
 (0)