File tree Expand file tree Collapse file tree 3 files changed +24
-8
lines changed Expand file tree Collapse file tree 3 files changed +24
-8
lines changed Original file line number Diff line number Diff line change 20
20
with :
21
21
egress-policy : audit
22
22
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
+ }
26
35
27
36
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28
37
with :
Original file line number Diff line number Diff line change 20
20
with :
21
21
egress-policy : audit
22
22
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
+ }
26
35
27
36
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28
37
with :
Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ set_target_properties(PcmMsrDriver PROPERTIES BUNDLE_EXTENSION kext MACOSX_BUNDL
15
15
target_include_directories (PcmMsrDriver PRIVATE
16
16
${CMAKE_OSX_SYSROOT} /System /Library/Frameworks/Kernel.framework /PrivateHeaders
17
17
${CMAKE_OSX_SYSROOT} /System /Library/Frameworks/Kernel.framework /Headers
18
- ${CMAKE_OSX_SYSROOT} /System /Library/Frameworks/Kernel.framework /Versions/A/Headers
19
- /Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System /Library/Frameworks/IOKit.framework /Headers
20
18
)
21
19
target_compile_definitions (PcmMsrDriver PRIVATE
22
20
-DKERNEL
You can’t perform that action at this time.
0 commit comments