|
10 | 10 | branches:
|
11 | 11 | - master
|
12 | 12 |
|
| 13 | +env: |
| 14 | + # Use Xcode 15.2 or newer to support VisionOS |
| 15 | + DEVELOPER_DIR: /Applications/Xcode_15.2.app |
| 16 | + |
13 | 17 | jobs:
|
14 |
| - build: |
15 |
| - name: Build |
16 |
| - runs-on: macOS-latest |
| 18 | + test: |
| 19 | + name: Test |
| 20 | + runs-on: macos-latest |
17 | 21 | strategy:
|
18 | 22 | matrix:
|
19 |
| - platform: ['iOS Simulator,name=iPhone 8'] |
| 23 | + platform: ['iOS Simulator,name=iPhone 15'] |
20 | 24 | steps:
|
21 | 25 | - uses: actions/checkout@v2
|
22 |
| - - name: Analyze and Test |
23 |
| - run: | |
24 |
| - xcodebuild clean analyze test \ |
25 |
| - -destination "platform=${{ matrix.platform }}" \ |
26 |
| - -sdk "iphonesimulator" \ |
27 |
| - -project PINOperation.xcodeproj \ |
28 |
| - -scheme PINOperation \ |
29 |
| - ONLY_ACTIVE_ARCH=NO \ |
30 |
| - CODE_SIGNING_REQUIRED=NO \ |
31 |
| - CLANG_ANALYZER_OUTPUT=plist-html \ |
32 |
| - CLANG_ANALYZER_OUTPUT_DIR="$(pwd)/clang" \ |
33 |
| - | xcpretty |
34 |
| - if [[ -n `find $(pwd)/clang -name "*.html"` ]] ; then rm -rf $(pwd)/clang; exit 1; fi |
35 |
| - rm -rf $(pwd)/clang |
| 26 | + - name: Test |
| 27 | + run: make test |
| 28 | + analyze: |
| 29 | + name: Analyze |
| 30 | + runs-on: macos-latest |
| 31 | + steps: |
| 32 | + - uses: actions/checkout@v2 |
| 33 | + - name: analyze |
| 34 | + run: make analyze |
36 | 35 | cocoapods:
|
37 | 36 | name: CocoaPods
|
38 |
| - runs-on: macOS-latest |
| 37 | + runs-on: macos-latest |
39 | 38 | steps:
|
40 | 39 | - uses: actions/checkout@v2
|
41 |
| - - name: Lint |
42 |
| - run: pod lib lint |
| 40 | + - name: Cocoapods lint |
| 41 | + run: make cocoapods |
43 | 42 | carthage:
|
44 | 43 | name: Carthage
|
45 |
| - runs-on: macOS-latest |
| 44 | + runs-on: macos-latest |
46 | 45 | steps:
|
47 | 46 | - uses: actions/checkout@v2
|
48 |
| - - name: Build |
49 |
| - run: carthage build --no-skip-current |
50 |
| - spm: |
51 |
| - name: Swift Package Manager tests |
52 |
| - runs-on: macOS-latest |
53 |
| - steps: |
54 |
| - - uses: actions/checkout@v2 |
55 |
| - - name: Test |
56 |
| - run: swift test |
57 |
| - example: |
58 |
| - name: Build Example project |
59 |
| - runs-on: macOS-latest |
60 |
| - strategy: |
61 |
| - matrix: |
62 |
| - platform: ['iOS Simulator,name=iPhone 8'] |
| 47 | + - name: carthage |
| 48 | + run: make carthage |
| 49 | + swift-package-manager: |
| 50 | + runs-on: macos-latest |
63 | 51 | steps:
|
64 | 52 | - uses: actions/checkout@v2
|
65 |
| - - name: Install Pods |
66 |
| - run: cd Example && pod install |
67 |
| - - name: Build |
68 |
| - run: | |
69 |
| - cd Example && xcodebuild clean analyze \ |
70 |
| - -destination "platform=${{ matrix.platform }}" \ |
71 |
| - -sdk "iphonesimulator" \ |
72 |
| - -workspace PINOperationExample.xcworkspace \ |
73 |
| - -scheme PINOperationExample \ |
74 |
| - ONLY_ACTIVE_ARCH=NO \ |
75 |
| - CODE_SIGNING_REQUIRED=NO \ |
76 |
| - CLANG_ANALYZER_OUTPUT=plist-html \ |
77 |
| - CLANG_ANALYZER_OUTPUT_DIR="$(pwd)/clang" \ |
78 |
| - | xcpretty |
79 |
| - if [[ -n `find $(pwd)/clang -name "*.html"` ]] ; then rm -rf $(pwd)/clang; exit 1; fi |
80 |
| - rm -rf $(pwd)/clang |
| 53 | + - name: Verify that PINOperation can be built by SPM |
| 54 | + run: make spm |
0 commit comments