generated from segment-integrations/analytics-swift-destination-template
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 947 Bytes
/
swift.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
name: Swift
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
cancel_previous:
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: styfle/[email protected]
with:
workflow_id: ${{ github.event.workflow.id }}
build_and_test_examples:
needs: cancel_previous
runs-on: macos-latest
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: /Users/runner/Library/Developer/Xcode/DerivedData
key: ${{ runner.os }}-spm-examples-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-examples
- name: build for ios simulator
run: |
cd Example/BasicExample
xcodebuild -project "BasicExample.xcodeproj" -scheme "BasicExample" -sdk iphonesimulator