File tree Expand file tree Collapse file tree 2 files changed +15
-18
lines changed Expand file tree Collapse file tree 2 files changed +15
-18
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,11 @@ description: Setup Node.js and install dependencies
4
4
inputs :
5
5
github_token :
6
6
description : ' GitHub Token'
7
- required : true
7
+ required : false
8
+ download_skia :
9
+ description : ' Download Skia Binary Artifacts'
10
+ required : false
11
+ default : ' true'
8
12
9
13
runs :
10
14
using : composite
32
36
shell : bash
33
37
34
38
- name : Download Skia Binary Artifacts
39
+ if : ${{ inputs.download_skia == 'true' }}
35
40
uses : dawidd6/action-download-artifact@v2
36
41
with :
37
42
workflow : " build-skia.yml"
@@ -40,11 +45,13 @@ runs:
40
45
branch : main
41
46
42
47
- name : Copy Artifacts to libs folder
48
+ if : ${{ inputs.download_skia == 'true' }}
43
49
working-directory : packages/skia
44
50
run : yarn workflow-copy-libs
45
51
shell : bash
46
52
47
53
- name : Copy Skia Headers
54
+ if : ${{ inputs.download_skia == 'true' }}
48
55
working-directory : packages/skia
49
56
run : yarn copy-skia-headers
50
- shell : bash
57
+ shell : bash
Original file line number Diff line number Diff line change @@ -18,27 +18,17 @@ jobs:
18
18
- name : Setup Ninja
19
19
uses : seanmiddleditch/gha-setup-ninja@master
20
20
21
- - name : Cache dependencies
22
- id : yarn-cache
23
- uses : actions/cache@v3
21
+ - name : Setup
22
+ uses : ./.github/actions/setup
24
23
with :
25
- path : |
26
- **/node_modules
27
- .yarn/install-state.gz
28
- key : ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
29
- restore-keys : |
30
- ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
31
- ${{ runner.os }}-yarn-
32
-
33
- - name : Install dependencies
34
- if : steps.yarn-cache.outputs.cache-hit != 'true'
35
- run : yarn install --immutable
36
- shell : bash
24
+ download_skia : ' false'
25
+ github_token : ${{ secrets.GITHUB_TOKEN }}
37
26
38
27
- name : Build Skia
39
28
working-directory : ./packages/skia
40
29
env :
41
30
ANDROID_NDK : ${{ steps.setup-ndk.outputs.ndk-path }}
31
+ GIT_SYNC_DEPS_SKIP_EMSDK : ' true'
42
32
run : yarn build-skia
43
33
44
34
- name : Upload artifacts - Android arm
107
97
with :
108
98
name : skia-ios-xcframeworks
109
99
path : |
110
- ./packages/skia/libs/ios/*.xcframework
100
+ ./packages/skia/libs/ios/*.xcframework
You can’t perform that action at this time.
0 commit comments