1name: Error numbers
2on:
3  pull_request:
4    paths:
5      - '.github/workflows/errno.yml'
6      - 'lib/libc/minimal/include/errno.h'
7      - 'scripts/ci/errno.py'
8      - 'SDK_VERSION'
9
10permissions:
11  contents: read
12
13jobs:
14  check-errno:
15    runs-on: ubuntu-24.04
16    steps:
17      - name: checkout
18        uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
19        with:
20          path: zephyr
21
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
29          enable-ccache: false
30
31      - name: Run errno.py
32        working-directory: zephyr
33        run: |
34          export ZEPHYR_SDK_INSTALL_DIR=${{ github.workspace }}/zephyr-sdk
35          export ZEPHYR_BASE=${PWD}
36          ./scripts/ci/errno.py
37