-
Notifications
You must be signed in to change notification settings - Fork 14
82 lines (68 loc) · 2.75 KB
/
ci.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: "NXNavigationExtension CI"
on: [push, pull_request]
jobs:
Pods:
name: CocoaPods Lint
runs-on: macOS-13
env:
DEVELOPER_DIR: /Applications/Xcode_15.1.app
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Switch Xcode
run: sudo xcode-select -s /Applications/Xcode_15.1.app
- name: Install CocoaPods
run: gem install cocoapods --no-document --quiet
- name: Install Xcpretty
run: gem install xcpretty --no-document --quiet
- name: Run NXNavigationExtension podspec lint
run: |
set -o pipefail
pod lib lint *.podspec --allow-warnings --skip-tests
Demo:
name: Run Demo
runs-on: macOS-13
env:
DEVELOPER_DIR: /Applications/Xcode_15.1.app
WORKSPACE_NAME: NXNavigationExtension.xcworkspace
strategy:
matrix:
swift_version: ["5.4"]
scheme:
- NXNavigationExtensionDemo
- NXNavigationExtensionSwiftUIDemo
iosDestination: ["OS=17.0,name=iPhone 14 Pro"]
macCatalystDestination: ["platform=macOS,arch=x86_64,variant=Mac Catalyst"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Switch Xcode
run: sudo xcode-select -s /Applications/Xcode_15.1.app
- name: Run Demo
run: |
set -o pipefail
xcodebuild build -workspace "${{ env.WORKSPACE_NAME }}" -scheme "${{ matrix.scheme }}" -destination "${{ matrix.iosDestination }}" -configuration Debug CODE_SIGNING_ALLOWED=NO | xcpretty -c
xcodebuild build -workspace "${{ env.WORKSPACE_NAME }}" -scheme "${{ matrix.scheme }}" -destination "${{ matrix.macCatalystDestination }}" -configuration Debug CODE_SIGNING_ALLOWED=NO | xcpretty -c
Build:
name: Build Library
runs-on: macOS-13
env:
DEVELOPER_DIR: /Applications/Xcode_15.1.app
WORKSPACE_NAME: NXNavigationExtension.xcworkspace
strategy:
matrix:
swift_version: ["5.4"]
scheme:
- NXNavigationExtension
- NXNavigationExtensionSwiftUI
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Switch Xcode
run: sudo xcode-select -s /Applications/Xcode_15.1.app
- name: Build as dynamic frameworks
run: |
set -o pipefail
xcodebuild build -workspace "${{ env.WORKSPACE_NAME }}" -scheme "${{ matrix.scheme }}" -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Release CODE_SIGNING_ALLOWED=NO | xcpretty -c
xcodebuild build -workspace "${{ env.WORKSPACE_NAME }}" -scheme "${{ matrix.scheme }}" -destination "platform=macOS,arch=x86_64,variant=Mac Catalyst" -configuration Release CODE_SIGNING_ALLOWED=NO | xcpretty -c
rm -rf ~/Library/Developer/Xcode/DerivedData/