We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ed9b6b commit 3e6debdCopy full SHA for 3e6debd
1 file changed
.github/workflows/macos-scan-build.yml
@@ -20,9 +20,18 @@ jobs:
20
with:
21
egress-policy: audit
22
23
- - uses: maxim-lobanov/setup-xcode@v1
24
- with:
25
- xcode-version: '14.3.1'
+ - name: Select Xcode 14.3.1
+ run: sudo xcode-select -s /Applications/Xcode_14.3.1.app/Contents/Developer
+
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
+ }
35
36
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
37
0 commit comments