feat!: Bump minimum to iOS 14 #138
Workflow file for this run
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
# Copyright 2020 Google LLC | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
# A workflow that runs tests on every new pull request | |
name: Build apps | |
on: | |
repository_dispatch: | |
types: [build] | |
pull_request: | |
branches: ['*'] | |
jobs: | |
build_dev_app: | |
runs-on: macos-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- name: Checkout google-maps-ios-utils | |
uses: actions/checkout@v3 | |
- name: Install Dependencies | |
run: | | |
brew install carthage | |
- name: Carthage update | |
run: carthage update --platform iOS --use-xcframeworks | |
- name: Carthage build | |
run: carthage build --no-skip-current --use-xcframeworks | |
- name: Build DevApp | |
run: | | |
xcodebuild -scheme DevApp -configuration Debug -destination "platform=iOS Simulator,OS=16.2,name=iPhone 14" build | xcpretty | |
build_swift_sample: | |
runs-on: macos-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- name: Checkout google-maps-ios-utils | |
uses: actions/checkout@v3 | |
- name: Install Dependencies | |
run: sudo gem install cocoapods | |
- name: Run pod install | |
run: pod install --project-directory=samples/SwiftDemoApp/ | |
- name: Build SwiftDemoApp | |
run: | | |
xcodebuild -workspace samples/SwiftDemoApp/SwiftDemoApp.xcworkspace \ | |
-scheme SwiftDemoApp -configuration Debug \ | |
-destination "platform=iOS Simulator,OS=16.2,name=iPhone 14" build | xcpretty | |
build_objc_sample: | |
runs-on: macos-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- name: Checkout google-maps-ios-utils | |
uses: actions/checkout@v3 | |
- name: Install Dependencies | |
run: sudo gem install cocoapods | |
- name: Run pod install | |
run: pod install --project-directory=samples/ObjCDemoApp/ | |
- name: Build ObjCDemoApp | |
run: | | |
xcodebuild -workspace samples/ObjCDemoApp/ObjCDemoApp.xcworkspace \ | |
-scheme ObjCDemoApp -configuration Debug \ | |
-destination "platform=iOS Simulator,OS=16.2,name=iPhone 14" build | xcpretty | |
test: # used as required status check | |
runs-on: ubuntu-latest | |
continue-on-error: false | |
strategy: | |
fail-fast: true | |
needs: | |
- build_dev_app | |
- build_swift_sample | |
- build_objc_sample | |
steps: | |
- run: echo "Fail if all other steps are not successful" |