2021-05-12 01:04:02 +08:00
|
|
|
name: Error numbers
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
2022-03-07 19:37:06 +08:00
|
|
|
- '.github/workflows/errno.yml'
|
2021-05-12 01:04:02 +08:00
|
|
|
- 'lib/libc/minimal/include/errno.h'
|
2022-03-04 18:37:34 +08:00
|
|
|
- 'scripts/ci/errno.py'
|
2021-05-12 01:04:02 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
check-errno:
|
2023-03-18 18:11:12 +08:00
|
|
|
runs-on: ubuntu-22.04
|
2021-05-12 01:04:02 +08:00
|
|
|
container:
|
2024-10-26 17:51:01 +08:00
|
|
|
image: ghcr.io/zephyrproject-rtos/ci:v0.27.4
|
2021-05-12 01:04:02 +08:00
|
|
|
|
|
|
|
steps:
|
2022-04-15 02:35:57 +08:00
|
|
|
- name: Apply container owner mismatch workaround
|
|
|
|
run: |
|
|
|
|
# FIXME: The owner UID of the GITHUB_WORKSPACE directory may not
|
|
|
|
# match the container user UID because of the way GitHub
|
|
|
|
# Actions runner is implemented. Remove this workaround when
|
|
|
|
# GitHub comes up with a fundamental fix for this problem.
|
|
|
|
git config --global --add safe.directory ${GITHUB_WORKSPACE}
|
|
|
|
|
2021-05-12 01:04:02 +08:00
|
|
|
- name: checkout
|
2024-01-27 12:26:39 +08:00
|
|
|
uses: actions/checkout@v4
|
2021-05-12 01:04:02 +08:00
|
|
|
|
2024-01-16 02:29:46 +08:00
|
|
|
- name: Environment Setup
|
|
|
|
run: |
|
|
|
|
echo "ZEPHYR_SDK_INSTALL_DIR=/opt/toolchains/zephyr-sdk-$( cat SDK_VERSION )" >> $GITHUB_ENV
|
|
|
|
|
2021-05-12 01:04:02 +08:00
|
|
|
- name: Run errno.py
|
|
|
|
run: |
|
|
|
|
export ZEPHYR_BASE=${PWD}
|
|
|
|
./scripts/ci/errno.py
|