Skip to content

Commit 3d7aa4a

Browse files
committed
ci: errno: use action-zephyr-setup action
Do not use docker image, use action for setting up zephyr instead. We need the SDK here to check the headers. Signed-off-by: Anas Nashif <[email protected]>
1 parent 36bc2f3 commit 3d7aa4a

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

.github/workflows/errno.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,23 @@ permissions:
1313
jobs:
1414
check-errno:
1515
runs-on: ubuntu-24.04
16-
container:
17-
image: ghcr.io/zephyrproject-rtos/ci:v0.28.5
18-
1916
steps:
20-
- name: Apply container owner mismatch workaround
21-
run: |
22-
# FIXME: The owner UID of the GITHUB_WORKSPACE directory may not
23-
# match the container user UID because of the way GitHub
24-
# Actions runner is implemented. Remove this workaround when
25-
# GitHub comes up with a fundamental fix for this problem.
26-
git config --global --add safe.directory ${GITHUB_WORKSPACE}
27-
2817
- name: checkout
2918
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
19+
with:
20+
path: zephyr
3021

31-
- name: Environment Setup
32-
run: |
33-
echo "ZEPHYR_SDK_INSTALL_DIR=/opt/toolchains/zephyr-sdk-$( cat SDK_VERSION )" >> $GITHUB_ENV
22+
- name: Setup Zephyr project
23+
uses: zephyrproject-rtos/action-zephyr-setup@c125c5ebeeadbd727fa740b407f862734af1e52a # v1.0.9
24+
with:
25+
app-path: zephyr
26+
toolchains: 'arm-zephyr-eabi'
27+
west-group-filter: -hal,-tools,-bootloader,-babblesim
28+
west-project-filter: -nrf_hw_models
3429

3530
- name: Run errno.py
31+
working-directory: zephyr
3632
run: |
33+
export ZEPHYR_SDK_INSTALL_DIR=${{ github.workspace }}/zephyr-sdk
3734
export ZEPHYR_BASE=${PWD}
3835
./scripts/ci/errno.py

0 commit comments

Comments
 (0)