kext: sysfs_node: harden sysfsnode_find() against races and double‑…
#20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: C/C++ CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: macos-26 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # Fetch only the submodules the build actually needs: | |
| # libutil - fs/mount_sysfs.c includes <libutil/mntopts.h> | |
| # libbsdmalloc, libsbuf, | |
| # libkext - the kernel libraries lib/Makefile builds | |
| # | |
| # Deliberately excluded: lib/xnu is huge and unused at build time (the tree | |
| # ships the needed headers under include/xnu), MacKernelSDK uses an SSH URL | |
| # that CI cannot authenticate, and libcpuft/libreadfile are not built by the | |
| # scaffold. | |
| - name: Check out the build submodules | |
| run: | | |
| git submodule update --init \ | |
| lib/libutil \ | |
| lib/libbsdmalloc \ | |
| lib/libsbuf \ | |
| lib/libkext | |
| - name: make ARCH=arm64e | |
| run: make ARCH=arm64e | |
| - name: make ARCH=x86_64 | |
| run: make ARCH=x86_64 | |
| - name: make ARCH=universal | |
| run: make ARCH=universal |