Skip to content

Commit 3e6debd

Browse files
committed
set SDKROOT
Change-Id: Ic459323c2f3cf9429d7b4cb36d8a2509fa2ab3bc
1 parent 9ed9b6b commit 3e6debd

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/macos-scan-build.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,18 @@ jobs:
2020
with:
2121
egress-policy: audit
2222

23-
- uses: maxim-lobanov/setup-xcode@v1
24-
with:
25-
xcode-version: '14.3.1'
23+
- name: Select Xcode 14.3.1
24+
run: sudo xcode-select -s /Applications/Xcode_14.3.1.app/Contents/Developer
25+
26+
- name: Set SDKROOT and verify kernel headers
27+
shell: bash
28+
run: |
29+
SDKROOT="$(xcrun --sdk macosx --show-sdk-path)"
30+
echo "SDKROOT=$SDKROOT" >> "$GITHUB_ENV"
31+
test -f "$SDKROOT/System/Library/Frameworks/Kernel.framework/Headers/IOKit/IOLib.h" || {
32+
echo "Kernel IOLib.h not found under SDK: $SDKROOT" >&2
33+
exit 1
34+
}
2635
2736
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2837
with:

0 commit comments

Comments
 (0)