Skip to content

Commit a014323

Browse files
authored
Update macosx_build.yml
1 parent 022f818 commit a014323

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/macosx_build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,20 @@ jobs:
2424
with:
2525
xcode-version: '14.3.1'
2626

27+
# Optional: pin the Xcode you want, if multiple are installed on the runner.
28+
- name: Select Xcode 14.3.1
29+
run: sudo xcode-select -s /Applications/Xcode_14.3.1.app/Contents/Developer
30+
31+
- name: Set SDKROOT and verify kernel headers
32+
shell: bash
33+
run: |
34+
SDKROOT="$(xcrun --sdk macosx --show-sdk-path)"
35+
echo "SDKROOT=$SDKROOT" >> "$GITHUB_ENV"
36+
test -f "$SDKROOT/System/Library/Frameworks/Kernel.framework/Headers/IOKit/IOLib.h" || {
37+
echo "Kernel IOLib.h not found under SDK: $SDKROOT" >&2
38+
exit 1
39+
}
40+
2741
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2842
with:
2943
submodules: recursive

0 commit comments

Comments
 (0)