|
| 1 | +name: ci |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - master |
| 7 | + pull_request: |
| 8 | + branches: |
| 9 | + - '*' |
| 10 | + |
| 11 | +jobs: |
| 12 | + build: |
| 13 | + runs-on: macOS-11.15 |
| 14 | + steps: |
| 15 | + - uses: actions/checkout@v1 |
| 16 | + - name: "Swift 5.1" |
| 17 | + run: xcodebuild -scheme FloatingPanel SWIFT_VERSION=5.1 clean build |
| 18 | + env: |
| 19 | + DEVELOPER_DIR: /Applications/Xcode_11.3.1.app/Contents/Developer |
| 20 | + - name: "Swift 5.2" |
| 21 | + run: xcodebuild -scheme FloatingPanel SWIFT_VERSION=5.2 clean build |
| 22 | + env: |
| 23 | + DEVELOPER_DIR: /Applications/Xcode_11.7.app/Contents/Developer |
| 24 | + - name: "Swift 5.3" |
| 25 | + run: xcodebuild -scheme FloatingPanel SWIFT_VERSION=5.3 clean build |
| 26 | + env: |
| 27 | + DEVELOPER_DIR: /Applications/Xcode_12.3.app/Contents/Developer |
| 28 | + |
| 29 | + testing: |
| 30 | + runs-on: macOS-10.15 |
| 31 | + steps: |
| 32 | + - uses: actions/checkout@v1 |
| 33 | + - name: "Testing in iOS 13.7" |
| 34 | + run: xcodebuild clean test -scheme FloatingPanel -workspace FloatingPanel.xcworkspace -destination 'platform=iOS Simulator,OS=13.7,name=iPhone 11 Pro' |
| 35 | + env: |
| 36 | + DEVELOPER_DIR: /Applications/Xcode_11.7.app/Contents/Developer |
| 37 | + - name: "Testing in iOS 14.3" |
| 38 | + run: xcodebuild clean test -scheme FloatingPanel -workspace FloatingPanel.xcworkspace -destination 'platform=iOS Simulator,OS=14.3,name=iPhone 12 Pro' |
| 39 | + env: |
| 40 | + DEVELOPER_DIR: /Applications/Xcode_12.3.app/Contents/Developer |
| 41 | + |
| 42 | + example: |
| 43 | + runs-on: macOS-10.15 |
| 44 | + env: |
| 45 | + DEVELOPER_DIR: /Applications/Xcode_12.3.app/Contents/Developer |
| 46 | + steps: |
| 47 | + - uses: actions/checkout@v1 |
| 48 | + - name: "Build Maps" |
| 49 | + run: xcodebuild -workspace FloatingPanel.xcworkspace -scheme Maps -sdk iphonesimulator clean build |
| 50 | + - name: "Build Stocks" |
| 51 | + run: xcodebuild -workspace FloatingPanel.xcworkspace -scheme Stocks -sdk iphonesimulator clean build |
| 52 | + - name: "Build Samples" |
| 53 | + run: xcodebuild -workspace FloatingPanel.xcworkspace -scheme Samples -sdk iphonesimulator clean build |
| 54 | + |
| 55 | + swiftpm: |
| 56 | + runs-on: macOS-10.15 |
| 57 | + env: |
| 58 | + DEVELOPER_DIR: /Applications/Xcode_12.3.app/Contents/Developer |
| 59 | + steps: |
| 60 | + - uses: actions/checkout@v1 |
| 61 | + - name: "Swift Package build" |
| 62 | + run: swift build -Xswiftc "-sdk" -Xswiftc "`xcrun --sdk iphonesimulator --show-sdk-path`" -Xswiftc "-target" -Xswiftc "x86_64-apple-ios14.3-simulator" |
| 63 | + |
| 64 | + cocoapods: |
| 65 | + runs-on: macOS-10.15 |
| 66 | + steps: |
| 67 | + - uses: actions/checkout@v1 |
| 68 | + - name: "CocoaPods: pod lib lint" |
| 69 | + run: pod lib lint --allow-warnings |
| 70 | + - name: "CocoaPods: pod spec lint" |
| 71 | + run: pod spec lint --allow-warnings |
0 commit comments