Skip to content

Commit cc5250e

Browse files
authored
Speed up build (#2499)
* Speed up build * Remove pod lib lint in release (handled by other publish step) * Try to speed up pod lib lint * Combine tests and samples
1 parent fcc2c3e commit cc5250e

File tree

12 files changed

+729
-163
lines changed

12 files changed

+729
-163
lines changed

.github/workflows/ci.yml

+1-15
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,6 @@ jobs:
3232
- name: Build Docs
3333
run: make build-docs
3434

35-
build-samples:
36-
runs-on: macOS-11
37-
steps:
38-
- name: Set env variable
39-
run: echo "ImageVersion=$ImageVersion" >> $GITHUB_ENV
40-
- uses: actions/checkout@v2
41-
- uses: actions/cache@v1
42-
with:
43-
path: vendor/bundle
44-
key: ${{ runner.os }}-gems-${{ env.ImageVersion }}-${{ hashFiles('**/Gemfile.lock') }}
45-
restore-keys: ${{ runner.os }}-gems-${{ env.ImageVersion }}
46-
- name: Build samples
47-
run: make build-samples
48-
4935
run-tests:
5036
runs-on: macOS-11
5137
steps:
@@ -60,7 +46,7 @@ jobs:
6046
- name: Install xcodegen
6147
run: brew install xcodegen
6248
- name: Test
63-
run: make test
49+
run: make test build-samples
6450

6551
pod-lib-lint:
6652
runs-on: macOS-11

.github/workflows/release.yml

+1-14
Original file line numberDiff line numberDiff line change
@@ -81,22 +81,9 @@ jobs:
8181
- name: Test
8282
run: make test
8383

84-
pod-lib-lint:
85-
needs: check-version
86-
runs-on: macOS-11
87-
steps:
88-
- uses: actions/checkout@v2
89-
- uses: actions/cache@v1
90-
with:
91-
path: vendor/bundle
92-
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
93-
restore-keys: ${{ runner.os }}-gems-
94-
- name: Pod lint
95-
run: make pod-lint
96-
9784
deploy:
9885
runs-on: macOS-11
99-
needs: [pod-lib-lint, run-tests, build-package, build-samples]
86+
needs: [run-tests, build-package, build-samples]
10087
steps:
10188
- uses: actions/checkout@v2
10289
- name: Get the version

0 commit comments

Comments
 (0)