-
-
Notifications
You must be signed in to change notification settings - Fork 31
32 lines (29 loc) · 1.04 KB
/
ios.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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'