| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- name: "Alamofire CI"
- on:
- push:
- branches:
- - master
- - hotfix
- pull_request:
- branches:
- - '*'
- jobs:
- macOS_5_1:
- name: Build macOS (5.1)
- runs-on: macOS-latest
- env:
- DEVELOPER_DIR: /Applications/Xcode_11.3.1.app/Contents/Developer
- steps:
- - uses: actions/checkout@v2
- - name: macOS (5.1)
- run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire macOS" -destination "platform=macOS" clean build | xcpretty
- macOS_5_2:
- name: Test macOS (5.2)
- runs-on: macOS-latest
- env:
- DEVELOPER_DIR: /Applications/Xcode_11.7.app/Contents/Developer
- steps:
- - uses: actions/checkout@v2
- - name: macOS (5.2)
- run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire macOS" -destination "platform=macOS" clean test | xcpretty
- macOS_Catalina_5_3:
- name: Test macOS 10.15 (5.3)
- runs-on: macOS-10.15
- env:
- DEVELOPER_DIR: /Applications/Xcode_12.3.app/Contents/Developer
- steps:
- - uses: actions/checkout@v2
- - name: macOS (5.3)
- run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire macOS" -destination "platform=macOS" clean test | xcpretty
- macOS_Big_Sur_5_3:
- name: Test macOS 11 (5.3)
- runs-on: macOS-11.0
- env:
- DEVELOPER_DIR: /Applications/Xcode_12.3.app/Contents/Developer
- steps:
- - uses: actions/checkout@v2
- - name: macOS (5.3)
- run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire macOS" -destination "platform=macOS" clean test | xcpretty
- Catalyst:
- name: Test Catalyst
- runs-on: macOS-latest
- env:
- DEVELOPER_DIR: /Applications/Xcode_12.3.app/Contents/Developer
- steps:
- - uses: actions/checkout@v2
- - name: Catalyst
- run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire iOS" -destination "platform=macOS" clean test | xcpretty
- iOS:
- name: Test iOS
- runs-on: macOS-latest
- env:
- DEVELOPER_DIR: /Applications/Xcode_12.3.app/Contents/Developer
- strategy:
- matrix:
- destination: ["OS=14.3,name=iPhone 12 Pro"] #, "OS=12.4,name=iPhone XS", "OS=11.4,name=iPhone X", "OS=10.3.1,name=iPhone SE"]
- steps:
- - uses: actions/checkout@v2
- - name: iOS - ${{ matrix.destination }}
- run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire iOS" -destination "${{ matrix.destination }}" clean test | xcpretty
- tvOS:
- name: Test tvOS
- runs-on: macOS-latest
- env:
- DEVELOPER_DIR: /Applications/Xcode_12.3.app/Contents/Developer
- strategy:
- matrix:
- destination: ["OS=14.3,name=Apple TV 4K"] #, "OS=11.4,name=Apple TV 4K", "OS=10.2,name=Apple TV 1080p"]
- steps:
- - uses: actions/checkout@v2
- - name: tvOS - ${{ matrix.destination }}
- run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire tvOS" -destination "${{ matrix.destination }}" clean test | xcpretty
- watchOS:
- name: Build watchOS
- runs-on: macOS-latest
- env:
- DEVELOPER_DIR: /Applications/Xcode_12.3.app/Contents/Developer
- strategy:
- matrix:
- destination: ["OS=7.2,name=Apple Watch Series 6 - 44mm"] #, "OS=4.2,name=Apple Watch Series 3 - 42mm", "OS=3.2,name=Apple Watch Series 2 - 42mm"]
- steps:
- - uses: actions/checkout@v2
- - name: watchOS - ${{ matrix.destination }}
- run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire watchOS" -destination "${{ matrix.destination }}" clean build | xcpretty
- spm:
- name: Test with SPM
- runs-on: macOS-latest
- env:
- DEVELOPER_DIR: /Applications/Xcode_12.3.app/Contents/Developer
- steps:
- - uses: actions/checkout@v2
- - name: SPM Test
- run: swift test -c debug
|