Skip to content

Fix CI for Swift Package Manager #71

Fix CI for Swift Package Manager

Fix CI for Swift Package Manager #71

Workflow file for this run

name: iOS starter workflow
on:
push:
branches:
- master
pull_request:
jobs:
build:
name: Build and Test default scheme using any available iPhone simulator
runs-on: macos-latest
steps:
- uses: SwiftyLab/setup-swift@latest
- name: Get swift version in macOS
if: runner.os == 'macOS'
run: xcrun --toolchain ${{ env.TOOLCHAINS }} swift --version
- name: Checkout
uses: actions/checkout@v3
- name: Set Default Scheme
run: |
scheme_list=$(xcodebuild -list -json | tr -d "\n")
default="All Tests"
echo $default | cat >default
echo Using default scheme: $default
- name: Build
run: |
xcodebuild -toolchain ${{ env.TOOLCHAINS }} build -scheme maplibre-navigation-ios -destination 'platform=iOS Simulator,OS=17.0.1,name=iPhone 15 Pro'
- name: Test
run: |
xcodebuild -toolchain ${{ env.TOOLCHAINS }} test -scheme maplibre-navigation-ios -destination 'platform=iOS Simulator,OS=17.0.1,name=iPhone 15 Pro'