-
Notifications
You must be signed in to change notification settings - Fork 712
76 lines (66 loc) · 1.93 KB
/
cocoapods-lint.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
name: CocoaPods Lint
on:
pull_request:
paths:
- 'Sources/**'
- 'KSCrash.podspec'
- '.github/workflows/cocoapods-lint.yml'
push:
branches:
- master
schedule:
- cron: '0 0 1 * *'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: "macos-${{ matrix.macos-version || 'latest' }}"
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
include:
- platform: iOS
config: ""
- platform: iOS
config: "--use-libraries"
- platform: iOS
config: "--use-libraries --use-modular-headers"
- platform: iOS
config: "--use-static-frameworks"
- platform: macOS
config: ""
- platform: tvOS
config: ""
- platform: watchOS
config: ""
- platform: visionOS
config: ""
macos-version: "15"
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
- name: Install CocoaPods
run: sudo gem install cocoapods
- name: Use Latest Stable Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Lint Podspec
id: lint
run: |
validation_dir=$(mktemp -d)
echo "validation_dir=${validation_dir}" >> $GITHUB_OUTPUT
pod lib lint --verbose --platforms=${{ matrix.platform }} ${{ matrix.config }} --no-clean --validation-dir="${validation_dir}"
shell: bash
- name: Upload Workspace Artifact
uses: actions/upload-artifact@v4
if: failure()
with:
name: workspace-${{ matrix.platform }}${{ matrix.config }}
path: ${{ steps.lint.outputs.validation_dir }}