Merge pull request #104 from Freelenzer/feature/convenience-inits #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CoreGPX CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- '*' | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_13.2.1.app/Contents/Developer | |
jobs: | |
iOS: | |
name: iOS Build | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build CoreGPX iOS | |
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace "Example/CoreGPX.xcworkspace" -scheme "CoreGPX" -destination "OS=15.2,name=iPhone 12 Pro" clean build | xcpretty | |
macOS: | |
name: macOS Build | |
runs-on: macos-12 | |
strategy: | |
matrix: | |
config: | |
- { name: "macOS", scheme: "CoreGPX-macOS" } | |
- { name: "Mac Catalyst", scheme: "CoreGPX" } | |
steps: | |
- uses: actions/checkout@v2 | |
- name: ${{ matrix.config['name'] }} | |
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace "Example/CoreGPX.xcworkspace" -scheme "${{ matrix.config['scheme'] }}" -destination "platform=macOS" clean build | xcpretty | |
watchOS: | |
name: watchOS Build | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build CoreGPX watchOS | |
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace "Example/CoreGPX.xcworkspace" -scheme "CoreGPX-watchOS" -destination "OS=9.1,name=Apple Watch Series 7 (45mm)" clean build | xcpretty | |
example: | |
name: Build Example & Test | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build Example App | |
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace "Example/CoreGPX.xcworkspace" -scheme "CoreGPX-Example" -destination "OS=15.2,name=iPhone 12 Pro" clean build | xcpretty | |
- name: Run test cases | |
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace "Example/CoreGPX.xcworkspace" -scheme "CoreGPX Tests" -destination "OS=15.2,name=iPhone 12 Pro" test | xcpretty | |
linux: | |
name: Linux Build | |
runs-on: ubuntu-latest | |
container: | |
image: swift:latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build | |
run: | | |
cd Classes | |
swift build |