-
Notifications
You must be signed in to change notification settings - Fork 454
109 lines (97 loc) · 4.63 KB
/
build-skia.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: Build SKIA
on: workflow_dispatch
jobs:
build:
runs-on: macos-latest
env:
WORKING_DIRECTORY: ./
steps:
- name: checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup Android NDK
id: setup-ndk
uses: nttld/setup-ndk@v1
with:
ndk-version: r22b
- name: Setup Ninja
uses: seanmiddleditch/gha-setup-ninja@master
- name: Setup Nodejs and npm
uses: actions/setup-node@v2
with:
node-version: "16"
- name: Setup yarn
run: npm install -g yarn
- name: Setup Nodejs with yarn caching
uses: actions/setup-node@v2
with:
node-version: "16"
cache: yarn
- name: Install root node dependencies
run: yarn
- name: Build Skia
working-directory: ${{ env.WORKING_DIRECTORY }}/
env:
ANDROID_NDK: ${{ steps.setup-ndk.outputs.ndk-path }}
run: yarn build-skia
- name: Upload artifacts - Android arm
uses: actions/upload-artifact@v2
with:
name: skia-android-arm
path: |
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/arm/libskia.a
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/arm/libskshaper.a
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/arm/libsvg.a
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/arm/libskottie.a
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/arm/libsksg.a
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/arm/libskparagraph.a
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/arm/libskunicode.a
- name: Upload artifacts - Android arm64
uses: actions/upload-artifact@v2
with:
name: skia-android-arm-64
path: |
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/arm64/libskia.a
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/arm64/libskshaper.a
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/arm64/libsvg.a
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/arm64/libskottie.a
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/arm64/libsksg.a
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/arm64/libskparagraph.a
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/arm64/libskunicode.a
- name: Upload artifacts - Android x86
uses: actions/upload-artifact@v2
with:
name: skia-android-arm-x86
path: |
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/x86/libskia.a
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/x86/libskshaper.a
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/x86/libsvg.a
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/x86/libskottie.a
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/x86/libsksg.a
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/x86/libskparagraph.a
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/x86/libskunicode.a
- name: Upload artifacts - Android x64
uses: actions/upload-artifact@v2
with:
name: skia-android-arm-x64
path: |
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/x64/libskia.a
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/x64/libskshaper.a
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/x64/libsvg.a
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/x64/libskottie.a
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/x64/libsksg.a
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/x64/libskparagraph.a
${{ env.WORKING_DIRECTORY }}/externals/skia/out/android/x64/libskunicode.a
- name: Upload artifacts - iOS xcframeworks
uses: actions/upload-artifact@v2
with:
name: skia-ios-xcframeworks
path: |
${{ env.WORKING_DIRECTORY }}/package/libs/ios/libskia.xcframework
${{ env.WORKING_DIRECTORY }}/package/libs/ios/libskshaper.xcframework
${{ env.WORKING_DIRECTORY }}/package/libs/ios/libsvg.xcframework
${{ env.WORKING_DIRECTORY }}/package/libs/ios/libskottie.xcframework
${{ env.WORKING_DIRECTORY }}/package/libs/ios/libsksg.xcframework
${{ env.WORKING_DIRECTORY }}/package/libs/ios/libskparagraph.xcframework
${{ env.WORKING_DIRECTORY }}/package/libs/ios/libskunicode.xcframework