-
Notifications
You must be signed in to change notification settings - Fork 25
58 lines (54 loc) · 2.2 KB
/
check-pod.yaml
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
name: Check Pod
on:
pull_request:
push:
branches:
- main
jobs:
check:
runs-on: macos-13
steps:
- uses: actions/checkout@v2
- name: Select Specific Xcode Version (15.1)
run: |
sudo xcode-select -s /Applications/Xcode_15.1.app
echo "Selected Xcode version:"
xcodebuild -version
# Run the steps we document in the Release Process.
# unzip commands included as proof-of-life for the Carthage output.
- name: Print Ruby version
run: ruby --version
- name: Print Carthage version
run: 'echo -n "carthage version: " && carthage version'
- name: Print CocoaPods version
run: 'echo -n "pod version: " && pod --version --verbose'
- name: Print Make version
run: make --version
- name: Build Carthage dependencies
run: make update
- name: Build Ably framework
run: make carthage_package
- name: Print contents of generated ZIP file
run: |
unzip -l Ably.framework.zip
unzip -l Ably.framework.zip | grep 'Mac/Ably.framework'
unzip -l Ably.framework.zip | grep 'tvOS/Ably.framework'
unzip -l Ably.framework.zip | grep 'iOS/Ably.framework'
- name: Validate pod
run: pod lib lint
# We move Ably.framework.zip into a directory. This is because, by
# default, macOS’s Archive Utility unzips directly-nested zip files, so
# if Ably.framework.zip were at the top level of the zip file that
# actions/upload-artifact creates, then Archive Utility would unzip
# Ably.framework.zip too, which we don’t want, since we want this file
# to be kept intact so that we can upload it to GitHub releases as
# described in CONTRIBUTING.md.
- name: Prepare built framework for archiving
run: |
mkdir -p carthage-built-framework-artifact-contents/carthage-built-framework
mv Ably.framework.zip carthage-built-framework-artifact-contents/carthage-built-framework
- name: Archive built framework
uses: actions/upload-artifact@v3
with:
name: carthage-built-framework
path: carthage-built-framework-artifact-contents