|
@@ -23,48 +23,35 @@ jobs:
|
|
|
xcodebuild:
|
|
|
strategy:
|
|
|
matrix:
|
|
|
- xcode:
|
|
|
- - version: '10'
|
|
|
- flag_for_test: -enableCodeCoverage YES -parallel-testing-enabled NO
|
|
|
- - version: '10.1'
|
|
|
- flag_for_test: -enableCodeCoverage YES -parallel-testing-enabled NO
|
|
|
- - version: '10.2'
|
|
|
- flag_for_test: -enableCodeCoverage YES -parallel-testing-enabled NO
|
|
|
- - version: '10.2.1'
|
|
|
- flag_for_test: -enableCodeCoverage YES -parallel-testing-enabled NO
|
|
|
- - version: '10.3'
|
|
|
- flag_for_test: -enableCodeCoverage YES -parallel-testing-enabled NO
|
|
|
- - version: '11'
|
|
|
- flag_for_test: -enableCodeCoverage YES -parallel-testing-enabled NO
|
|
|
+ developer_dir:
|
|
|
+ - '/Applications/Xcode_10.app'
|
|
|
+ - '/Applications/Xcode_10.1.app'
|
|
|
+ - '/Applications/Xcode_10.2.app'
|
|
|
+ - '/Applications/Xcode_10.2.1.app'
|
|
|
+ - '/Applications/Xcode_10.3.app'
|
|
|
+ - '/Applications/Xcode_11.app'
|
|
|
+ xcode_flags: ['-scheme Base32 -enableCodeCoverage YES -parallel-testing-enabled NO test']
|
|
|
+ xcode_flags_without_test: ['-scheme Base32 build']
|
|
|
runs-on: macOS-10.14
|
|
|
steps:
|
|
|
- uses: actions/checkout@v1
|
|
|
- run: xcodebuild -version
|
|
|
- env:
|
|
|
- DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode.version }}.app
|
|
|
+ env: { 'DEVELOPER_DIR': '${{ matrix.developer_dir }}' }
|
|
|
- name: macOS
|
|
|
- env:
|
|
|
- DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode.version }}.app
|
|
|
- run: xcodebuild -scheme Base32 ${{ matrix.xcode.flag_for_test }} test | xcpretty
|
|
|
+ env: { 'DEVELOPER_DIR': '${{ matrix.developer_dir }}' }
|
|
|
+ run: xcodebuild ${{ matrix.xcode_flags }} | xcpretty
|
|
|
shell: bash
|
|
|
- name: iPhone Simulator
|
|
|
- env:
|
|
|
- DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode.version }}.app
|
|
|
- run: >
|
|
|
- xcodebuild -scheme Base32 ${{ matrix.xcode.flag_for_test }} test
|
|
|
- -sdk iphonesimulator -destination "name=iPhone 8" | xcpretty
|
|
|
+ env: { 'DEVELOPER_DIR': '${{ matrix.developer_dir }}' }
|
|
|
+ run: xcodebuild ${{ matrix.xcode_flags }} -sdk iphonesimulator -destination "name=iPhone 8" | xcpretty
|
|
|
shell: bash
|
|
|
- name: Apple TV Simulator
|
|
|
- env:
|
|
|
- DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode.version }}.app
|
|
|
- run: >
|
|
|
- xcodebuild -scheme Base32 ${{ matrix.xcode.flag_for_test }} test
|
|
|
- -sdk appletvsimulator -destination "name=Apple TV 4K" | xcpretty
|
|
|
+ env: { 'DEVELOPER_DIR': '${{ matrix.developer_dir }}' }
|
|
|
+ run: xcodebuild ${{ matrix.xcode_flags }} -sdk appletvsimulator -destination "name=Apple TV 4K" | xcpretty
|
|
|
shell: bash
|
|
|
- name: watchOS Simulator
|
|
|
- env:
|
|
|
- DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode.version }}.app
|
|
|
- run: xcodebuild -scheme Base32 build -sdk watchsimulator | xcpretty
|
|
|
+ env: { 'DEVELOPER_DIR': '${{ matrix.developer_dir }}' }
|
|
|
+ run: xcodebuild ${{ matrix.xcode_flags_without_test }} -sdk watchsimulator | xcpretty
|
|
|
shell: bash
|
|
|
- if: matrix.xcode.version == '10.3'
|
|
|
run: curl -s https://codecov.io/bash | bash -s -- -t ${{ secrets.CODECOV_TOKEN }}
|