name: "Alamofire CI" on: push: branches: - master - hotfix pull_request: branches: - '*' jobs: macOS_5_1: name: Build macOS (5.1) runs-on: macOS-10.15 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-10.15 env: DEVELOPER_DIR: /Applications/Xcode_11.7.app/Contents/Developer steps: - uses: actions/checkout@v2 - name: Install Firewalk run: brew install alamofire/alamofire/firewalk && firewalk & - 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_5_3: name: Test macOS (5.3) runs-on: macOS-10.15 env: DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer steps: - uses: actions/checkout@v2 - name: Install Firewalk run: brew install alamofire/alamofire/firewalk && firewalk & - 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_5_4: name: Test macOS (5.4) runs-on: firebreak env: DEVELOPER_DIR: /Applications/Xcode_12.5.app/Contents/Developer steps: - uses: actions/checkout@v2 - name: Install Firewalk run: arch -arch arm64e brew install alamofire/alamofire/firewalk && arch -arch x86_64 firewalk & - name: macOS (5.4) run: set -o pipefail && arch -arch arm64e env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire macOS" -destination "platform=macOS" clean test | xcpretty Catalyst: name: Test Catalyst runs-on: macOS-10.15 env: DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer steps: - uses: actions/checkout@v2 - name: Install Firewalk run: brew install alamofire/alamofire/firewalk && firewalk & - 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-10.15 env: DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer strategy: matrix: destination: ["OS=14.4,name=iPhone 12 Pro"] steps: - uses: actions/checkout@v2 - name: Install Firewalk run: brew install alamofire/alamofire/firewalk && firewalk & - 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-10.15 env: DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer strategy: matrix: destination: ["OS=14.3,name=Apple TV 4K"] steps: - uses: actions/checkout@v2 - name: Install Firewalk run: brew install alamofire/alamofire/firewalk && firewalk & - 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-10.15 env: DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer strategy: matrix: destination: ["OS=7.2,name=Apple Watch Series 6 - 44mm"] 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 watchOS_Test: name: Test watchOS runs-on: firebreak env: DEVELOPER_DIR: /Applications/Xcode_12.5.app/Contents/Developer strategy: matrix: destination: ["OS=7.4,name=Apple Watch Series 6 - 44mm"] steps: - uses: actions/checkout@v2 - name: Install Firewalk run: arch -arch arm64e brew install alamofire/alamofire/firewalk && arch -arch x86_64 firewalk & - name: watchOS - ${{ matrix.destination }} run: set -o pipefail && arch -arch arm64e env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire watchOS" -destination "${{ matrix.destination }}" clean test | xcpretty spm: name: Test with SPM runs-on: macOS-10.15 env: DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer steps: - uses: actions/checkout@v2 - name: Install Firewalk run: brew install alamofire/alamofire/firewalk && firewalk & - name: SPM Test run: swift test -c debug