-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (42 loc) · 1.25 KB
/
build.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
46
47
48
49
name: Build
on: [push]
jobs:
build-swift:
name: Build with swift
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Build Package with swift
run: swift build
build-xcodebuild:
name: Build with xcodebuild
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Build Package with xcodebuild
run: xcodebuild -scheme ApiVideoClient -destination 'platform=iOS Simulator,name=iPhone 16'
- name: Build Example
run: xcodebuild clean build -project Example/Example.xcodeproj -scheme ApiVideoClient -sdk iphoneos
cocoapods:
name: Verify cocopods podspec
needs: [ build-xcodebuild ]
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3
- name: xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.2.0'
- name: Verify cocoapods
run: pod lib lint --allow-warnings