Skip to content

Commit 5f9c5b0

Browse files
fix: update CI workflow dependencies for Android and iOS builds
1 parent 4ad4b42 commit 5f9c5b0

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

.github/actions/setup-node-yarn/action.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ runs:
1818
shell: bash
1919
run: yarn install --immutable
2020

21-
- name: Prepare package
21+
- name: Cache built library
22+
id: cache-lib
23+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
24+
with:
25+
path: lib
26+
key: ${{ runner.os }}-lib-${{ hashFiles('src/**/*.{ts,tsx,js,jsx}', 'package.json', 'tsconfig.json') }}
27+
restore-keys: |
28+
${{ runner.os }}-lib-
29+
30+
- name: Build library (bob build)
31+
if: steps.cache-lib.outputs.cache-hit != 'true'
2232
shell: bash
2333
run: yarn prepare

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,18 @@ jobs:
1010

1111
build-android:
1212
name: Build Android
13-
needs: lint
1413
uses: ./.github/workflows/build-android.yml
1514

1615
build-ios:
1716
name: Build iOS
18-
needs: lint
1917
uses: ./.github/workflows/build-ios.yml
2018

2119
test-android-harness:
2220
name: Test Android Harness
23-
needs: build-android
21+
needs: [lint, build-android]
2422
uses: ./.github/workflows/test-android-harness.yml
2523

2624
test-ios-harness:
2725
name: Test iOS Harness
28-
needs: build-ios
26+
needs: [lint, build-ios]
2927
uses: ./.github/workflows/test-ios-harness.yml

0 commit comments

Comments
 (0)