-
-
Notifications
You must be signed in to change notification settings - Fork 31
45 lines (35 loc) · 1.3 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
33
34
35
36
37
38
39
40
41
42
43
44
45
name: iOS
on:
push:
branches:
- master
pull_request:
jobs:
format:
name: Code Style
runs-on: macos-14
steps:
- name: Install tools
run: brew install swiftlint
- name: Checkout
uses: actions/checkout@v4
- name: Check format
run: swiftlint lint . --reporter github-actions-logging
test:
name: Build and Test
runs-on: macos-14
steps:
- name: Install tools
run: brew install xcbeautify
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: set -o pipefail && xcodebuild build -scheme maplibre-navigation-ios -destination 'generic/platform=iOS' | xcbeautify --renderer github-actions
- name: Test
run: set -o pipefail && xcodebuild test -scheme maplibre-navigation-ios -destination 'platform=iOS Simulator,OS=17.0.1,name=iPhone 15 Pro' | xcbeautify --renderer github-actions
- name: Build Example Project
run: set -o pipefail && xcodebuild build -project Example/Example.xcodeproj -scheme Example -destination 'generic/platform=iOS' CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY="" | xcbeautify --renderer github-actions