Fall 2024 updates #55
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
--- | |
name: GEOSwiftMapKit | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
swiftlint: | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install SwiftLint | |
run: brew install swiftlint | |
- name: Swiftlint | |
run: swiftlint --strict | |
podspec: | |
name: Lint Podspec for ${{ matrix.platform }} | |
runs-on: macos-14 | |
strategy: | |
matrix: | |
platform: [ios, macos, tvos] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Update CocoaPods Specs | |
run: pod repo update | |
- name: Lint Podspec | |
run: pod lib lint --platforms=${{ matrix.platform }} | |
xcodebuild: | |
name: ${{ matrix.name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- name: "xcodebuild (iOS 18.0, Xcode 16.0)" | |
os: macos-14 | |
xcode-version: "16" | |
sdk: iphonesimulator18.0 | |
destination: "platform=iOS Simulator,OS=18.0,name=iPhone 16" | |
- name: "xcodebuild (tvOS 18.0, Xcode 16.0)" | |
os: macos-14 | |
xcode-version: "16" | |
sdk: appletvsimulator18.0 | |
destination: "platform=tvOS Simulator,OS=18.0,name=Apple TV" | |
- name: "xcodebuild (macOS 15.0, Xcode 16.0)" | |
os: macos-14 | |
xcode-version: "16" | |
sdk: macosx15.0 | |
destination: "platform=OS X" | |
- name: "xcodebuild (iOS 17.5, Xcode 15.4)" | |
os: macos-14 | |
xcode-version: "15.4" | |
sdk: iphonesimulator17.5 | |
destination: "platform=iOS Simulator,OS=17.5,name=iPhone 15" | |
- name: "xcodebuild (tvOS 17.5, Xcode 15.4)" | |
os: macos-14 | |
xcode-version: "15.4" | |
sdk: appletvsimulator17.5 | |
destination: "platform=tvOS Simulator,OS=17.5,name=Apple TV" | |
- name: "xcodebuild (macOS 14.7, Xcode 15.4)" | |
os: macos-14 | |
xcode-version: "15.4" | |
sdk: macosx14.5 | |
destination: "platform=OS X" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Select Xcode Version | |
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode-version }}.app/Contents/Developer | |
- name: Install xcpretty | |
run: gem install xcpretty | |
- name: Build & Test | |
run: | | |
set -o pipefail && xcodebuild \ | |
-scheme GEOSwiftMapKit \ | |
-sdk "${{ matrix.sdk }}" \ | |
-destination "${{ matrix.destination }}" \ | |
clean test | xcpretty -c; | |
swift-cli-macos: | |
name: "swift-cli (${{ matrix.os }}, Xcode ${{matrix.xcode-version}})" | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: macos-14 | |
xcode-version: "15.4" | |
- os: macos-14 | |
xcode-version: "16" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Select Xcode Version | |
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode-version }}.app/Contents/Developer | |
- name: Build & Test | |
run: swift test |