Skip to content

Commit f190113

Browse files
committed
[CI] Split ci.yml into dedicated workflows
1 parent d258c63 commit f190113

File tree

3 files changed

+53
-24
lines changed

3 files changed

+53
-24
lines changed

.github/workflows/ci.yml renamed to .github/workflows/ci-swiftpm.yml

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,16 @@
1-
name: CI
1+
name: CI (SwiftPM)
22

33
on:
44
push:
55
branches:
66
- master
7+
tags:
8+
- "*"
79
pull_request:
810
branches:
911
- "*"
1012

1113
jobs:
12-
cocoapods:
13-
name: CocoaPods Lint
14-
runs-on: macos-latest
15-
steps:
16-
- uses: actions/checkout@v2
17-
- run: bundle install
18-
- run: ./test podspec
19-
20-
xcode:
21-
name: Xcode ${{ matrix.xcode }} - ${{ matrix.platform }}
22-
runs-on: macos-latest
23-
strategy:
24-
matrix:
25-
xcode: [11.7, 12.4]
26-
platform: [macos, ios, tvos]
27-
fail-fast: false
28-
env:
29-
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app
30-
steps:
31-
- uses: actions/checkout@v2
32-
- run: ./test ${{ matrix.platform }}
33-
- run: ./test ${{ matrix.platform }}_xcodespm
34-
3514
swiftpm_darwin:
3615
name: SwiftPM, Darwin, Xcode ${{ matrix.xcode }}
3716
runs-on: macos-latest

.github/workflows/ci-xcode.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI (Xcode)
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- "*"
9+
pull_request:
10+
branches:
11+
- "*"
12+
13+
jobs:
14+
xcode:
15+
name: Xcode ${{ matrix.xcode }} - ${{ matrix.platform }}
16+
runs-on: macos-latest
17+
strategy:
18+
matrix:
19+
xcode: [11.7, 12.4]
20+
platform: [macos, ios, tvos]
21+
fail-fast: false
22+
env:
23+
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app
24+
steps:
25+
- uses: actions/checkout@v2
26+
- run: ./test ${{ matrix.platform }}
27+
- run: ./test ${{ matrix.platform }}_xcodespm

.github/workflows/cocoapods.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: CocoaPods
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- "*"
9+
pull_request:
10+
branches:
11+
- "*"
12+
13+
jobs:
14+
cocoapods:
15+
name: CocoaPods Lint
16+
runs-on: macos-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: ruby/setup-ruby@v1
20+
with:
21+
ruby-version: 2.7
22+
bundler-cache: true
23+
- run: ./test podspec

0 commit comments

Comments
 (0)