-
Notifications
You must be signed in to change notification settings - Fork 452
100 lines (91 loc) · 3.65 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
name: Build SKIA
on: workflow_dispatch
jobs:
build:
runs-on: macos-latest
steps:
- name: checkout
uses: actions/checkout@v3
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
uses: ./.github/actions/setup
with:
download_skia: 'false'
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Build Skia
working-directory: ./packages/skia
env:
ANDROID_NDK: ${{ steps.setup-ndk.outputs.ndk-path }}
GIT_SYNC_DEPS_SKIP_EMSDK: 'true'
run: yarn build-skia
- name: Upload artifacts - Android arm
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v3
with:
name: skia-android-arm
path: |
./externals/skia/out/android/arm/libskia.a
./externals/skia/out/android/arm/libskshaper.a
./externals/skia/out/android/arm/libsvg.a
./externals/skia/out/android/arm/libskottie.a
./externals/skia/out/android/arm/libsksg.a
./externals/skia/out/android/arm/libskparagraph.a
./externals/skia/out/android/arm/libskunicode_core.a
./externals/skia/out/android/arm/libskunicode_icu.a
- name: Upload artifacts - Android arm64
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v3
with:
name: skia-android-arm-64
path: |
./externals/skia/out/android/arm64/libskia.a
./externals/skia/out/android/arm64/libskshaper.a
./externals/skia/out/android/arm64/libsvg.a
./externals/skia/out/android/arm64/libskottie.a
./externals/skia/out/android/arm64/libsksg.a
./externals/skia/out/android/arm64/libskparagraph.a
./externals/skia/out/android/arm64/libskunicode_core.a
./externals/skia/out/android/arm64/libskunicode_icu.a
- name: Upload artifacts - Android x86
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v4
with:
name: skia-android-arm-x86
path: |
./externals/skia/out/android/x86/libskia.a
./externals/skia/out/android/x86/libskshaper.a
./externals/skia/out/android/x86/libsvg.a
./externals/skia/out/android/x86/libskottie.a
./externals/skia/out/android/x86/libsksg.a
./externals/skia/out/android/x86/libskparagraph.a
./externals/skia/out/android/x86/libskunicode_core.a
./externals/skia/out/android/x86/libskunicode_icu.a
- name: Upload artifacts - Android x64
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v4
with:
name: skia-android-arm-x64
path: |
./externals/skia/out/android/x64/libskia.a
./externals/skia/out/android/x64/libskshaper.a
./externals/skia/out/android/x64/libsvg.a
./externals/skia/out/android/x64/libskottie.a
./externals/skia/out/android/x64/libsksg.a
./externals/skia/out/android/x64/libskparagraph.a
./externals/skia/out/android/x64/libskunicode_core.a
./externals/skia/out/android/x64/libskunicode_icu.a
- name: Upload artifacts - iOS xcframeworks
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v4
with:
name: skia-ios-xcframeworks
path: |
./packages/skia/libs/ios/*.xcframework