|
8 | 8 | strategy:
|
9 | 9 | fail-fast: false
|
10 | 10 | matrix:
|
11 |
| - os: [ macos-14, macos-14-xlarge, macos-15-large, macos-15-xlarge ] |
12 |
| - xcode: [ 16.1, 16.2 ] |
| 11 | + os: [ macos-14, macos-14-xlarge, macos-14-large, macos-15-large, macos-15-xlarge ] |
13 | 12 |
|
14 | 13 | runs-on: ${{ matrix.os }}
|
15 | 14 |
|
16 | 15 | steps:
|
17 |
| - - name: Check if macOSX.sdk exists |
| 16 | + - name: Check CPU number |
18 | 17 | run: |
|
19 |
| - if [ -d "$(xcrun --sdk macosx --show-sdk-path)" ]; then |
20 |
| - echo "✅ macOSX.sdk is available" |
21 |
| - else |
22 |
| - echo "❌ macOSX.sdk is missing" |
23 |
| - exit 1 |
24 |
| - fi |
25 |
| - |
26 |
| - - uses: maxim-lobanov/setup-xcode@v1 |
27 |
| - with: |
28 |
| - xcode-version: ${{ matrix.xcode }} |
29 |
| - |
30 |
| - - name: Show Xcodebuild version |
31 |
| - run: xcodebuild -version |
32 |
| - |
33 |
| - - name: Check if macOSX.sdk for selected Xcode ${{ matrix.xcode }} exists |
34 |
| - run: | |
35 |
| - if [ -d "$(xcrun --sdk macosx --show-sdk-path)" ]; then |
36 |
| - echo "✅ macOSX.sdk is available" |
37 |
| - else |
38 |
| - echo "❌ macOSX.sdk is missing" |
39 |
| - exit 1 |
40 |
| - fi |
41 |
| -
|
42 |
| - - name: List available SDKs |
43 |
| - run: xcodebuild -showsdks |
44 |
| - |
45 |
| - - name: List selected SDK |
46 |
| - run: xcrun --show-sdk-version |
47 |
| - |
48 |
| - - name: List installed simulators & runtimes |
49 |
| - run: xcrun simctl list |
50 |
| - |
51 |
| - - name: Checkout repository |
52 |
| - uses: actions/checkout@v4 |
53 |
| - |
54 |
| -# - name: Run tests |
55 |
| -# working-directory: macOSapp |
56 |
| -# run: | |
57 |
| -# xcodebuild test -project macOSapp.xcodeproj \ |
58 |
| -# -scheme macOSapp \ |
59 |
| -# -destination 'platform=macOS' \ |
60 |
| -# -only-testing:macOSappUITests \ |
61 |
| -# -enableCodeCoverage YES |
62 |
| - |
63 |
| - - name: Run build |
64 |
| - working-directory: macOSapp |
65 |
| - run: | |
66 |
| - xcodebuild build -project macOSapp.xcodeproj \ |
67 |
| - -scheme macOSapp \ |
68 |
| - -destination 'platform=macOS' |
| 18 | + sysctl -n hw.ncpu |
0 commit comments