-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (29 loc) · 1 KB
/
build-example.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
name: Build Example
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
env:
DEVELOPER_DIR: /Applications/Xcode_15.0.app/Contents/Developer
jobs:
example:
name: Run examples
runs-on: macOS-13
strategy:
matrix:
iosDestination: ['platform=iOS Simulator,OS=16.0,name=iPhone 14']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set secret
run: git config --global url."https://${{ secrets.ACTIONS_TOKEN }}:[email protected]/".insteadOf "https://github.com/"
- name: Set pipefail
run: set -euo pipefail
- name: Set SwiftPM Plugin config
run: defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES
- name: Build iOS
run: |
xcodebuild clean build -project "AppExample/Example.xcodeproj" -scheme "Example" | xcpretty && exit ${PIPESTATUS[0]}
env:
destination: ${{ matrix.iosDestination }}