forked from mono/SkiaSharp
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.vsts-skia.yml
74 lines (58 loc) · 1.73 KB
/
.vsts-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
jobs:
- job: SkiaLib_WebAssembly
container: unoplatform/wasm-build:2.1.1
pool:
vmImage: 'ubuntu-latest'
strategy:
matrix:
1_39_11:
EMSCRIPTEN_VERSION: 1.39.11
1_40_0:
EMSCRIPTEN_VERSION: 1.40.0
2_0_5:
EMSCRIPTEN_VERSION: 2.0.5
2_0_6:
EMSCRIPTEN_VERSION: 2.0.6
2_0_9:
EMSCRIPTEN_VERSION: 2.0.9
2_0_11:
EMSCRIPTEN_VERSION: 2.0.11
steps:
- checkout: self
clean: true
submodules: recursive
- bash: |
cd ~
echo Installing emscripten $(EMSCRIPTEN_VERSION)
git clone --branch $(EMSCRIPTEN_VERSION) https://github.com/emscripten-core/emsdk
cd ~/emsdk
./emsdk install $(EMSCRIPTEN_VERSION)
./emsdk activate $(EMSCRIPTEN_VERSION)
displayName: 'Setup Emscripten'
- bash: |
cd $(build.sourcesdirectory)/externals/skia
python tools/git-sync-deps
./bin/fetch-gn
displayName: Sources Setup
- bash: |
cd $(build.sourcesdirectory)/externals/skia
source ~/emsdk/emsdk_env.sh
$(build.sourcesdirectory)/scripts/wasm-generate.sh
displayName: 'Running build'
env:
BUILD_SOURCESDIRECTORY: "$(build.sourcesdirectory)"
- task: CopyFiles@2
displayName: 'Publish Wasm Binaries'
inputs:
SourceFolder: $(build.sourcesdirectory)/externals/skia/out/canvaskit_wasm
Contents: 'libSkiaSharp.a'
TargetFolder: $(build.artifactstagingdirectory)/libSkiaSharp.a/$(EMSCRIPTEN_VERSION)
CleanTargetFolder: false
OverWrite: false
flattenFolders: false
- task: PublishBuildArtifacts@1
condition: always()
inputs:
PathtoPublish: $(build.artifactstagingdirectory)
ArtifactName: canvaskit_wasm
ArtifactType: Container