-
Notifications
You must be signed in to change notification settings - Fork 0
91 lines (78 loc) · 2.12 KB
/
build.yml
File metadata and controls
91 lines (78 loc) · 2.12 KB
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
name: Build Skia Artifacts
on:
push:
branches:
- *
pull_request:
jobs:
headers:
name: Headers
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Sync Skia dependencies
run: |
export PATH="${GITHUB_WORKSPACE}/depot_tools:${PATH}"
cd skia
python3 tools/git-sync-deps
- name: Build headers
run: python3 scripts/build.py headers
- name: Upload headers
uses: actions/upload-artifact@v4
with:
name: headers
path: artifacts/headers
windows:
name: Windows (${{ matrix.arch }})
runs-on: windows-latest
strategy:
matrix:
arch: [x64, arm64]
env:
DEPOT_TOOLS_WIN_TOOLCHAIN: "0"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Sync Skia dependencies
shell: pwsh
run: |
$env:PATH = "${{ github.workspace }}\depot_tools;" + $env:PATH
Set-Location skia
python tools/git-sync-deps
- name: Build ${{ matrix.arch }}
shell: pwsh
run: |
python scripts/build.py windows ${{ matrix.arch }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: windows-${{ matrix.arch }}
path: artifacts/windows_${{ matrix.arch }}
macos:
name: macOS (${{ matrix.arch }})
runs-on: macos-latest
strategy:
matrix:
arch: [x64, arm64]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Sync Skia dependencies
run: |
export PATH="${GITHUB_WORKSPACE}/depot_tools:${PATH}"
cd skia
python3 tools/git-sync-deps
- name: Build ${{ matrix.arch }}
run: python3 scripts/build.py macos ${{ matrix.arch }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: macos-${{ matrix.arch }}
path: artifacts/macos_${{ matrix.arch }}