-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (51 loc) · 1.74 KB
/
build-mingw.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
name: Build with MinGW GCC
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on: [push]
jobs:
mingw64-x64:
name: Build Skia with MinGW GCC
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: mingw-w64-x86_64-clang git python3 mingw-w64-x86_64-gn
- name: "Clone skia"
run: git clone --depth 1 https://github.com/mono/skia.git
- name: "Build skia"
run: |
git config --global init.defaultBranch master
cd skia
rm bin/fetch-gn # not needed and will crash as it's not understanding msys
echo "#!/bin/bash\n" > bin/fetch-gn
python3 tools/git-sync-deps windows
python3 bin/fetch-ninja
bin/gn gen out/lib --platform=mingw --args='
is_debug=false
is_official_build=true
is_trivial_abi=false
skia_enable_fontmgr_win=true
skia_enable_gpu=true
skia_enable_pdf=true
skia_use_freetype=false
skia_use_system_libjpeg_turbo=false
skia_use_system_libpng=false
skia_use_system_libwebp=false
skia_use_system_zlib=false
skia_use_harfbuzz=false
skia_use_icu=false
skia_use_expat=false
'
third_party/ninja/ninja -C out/lib skia
mkdir -p ../lib/skia/win-x64/lib
cp --recursive include ../lib/skia/win-x64/include
cp --recursive out/lib/*.lib ../lib/skia/win-x64/lib
- name: Archive the build
uses: actions/upload-artifact@v4
with:
name: windows-mingw64-x64
path: lib