Skip to content

Commit 96dfcaf

Browse files
Update cocoapods.yml
Added build matrix to parallelize linting using dynamic libraries and linting using static libraries
1 parent 7b57aab commit 96dfcaf

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/cocoapods.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@ on: [push, workflow_dispatch]
33

44
jobs:
55
lint:
6+
strategy:
7+
matrix:
8+
linttype: [Dynamic, Static]
9+
610
name: Lint
711
runs-on: macOS-11
12+
env:
13+
LINT_TYPE: ${{ matrix.linttype }}
14+
815
steps:
916
- name: Checkout Code
1017
uses: actions/checkout@v2
@@ -14,10 +21,10 @@ jobs:
1421
with:
1522
version: latest
1623

17-
- name: Lint (Dynamic Library)
18-
run: |
19-
pod lib lint
20-
21-
- name: Lint (Static Library)
24+
- name: Lint
2225
run: |
23-
pod lib lint --use-libraries
26+
if [ "$LINT_TYPE" == "Dynamic" ]; then
27+
pod lib lint
28+
else
29+
pod lib lint --use-libraries
30+
fi

0 commit comments

Comments
 (0)