|
7 | 7 | fail-fast: false
|
8 | 8 | matrix:
|
9 | 9 | os: [windows-latest, macos-latest, ubuntu-20.04]
|
| 10 | + shared: [Static, Shared] |
10 | 11 | mode: [Release, Debug]
|
11 | 12 | arch: [x64, x86, arm64]
|
12 | 13 | exclude:
|
@@ -57,17 +58,31 @@ jobs:
|
57 | 58 | if [[ "${{ matrix.mode }}" == "Debug" ]] ; then
|
58 | 59 | export is_debug=true
|
59 | 60 | export is_official=false
|
| 61 | + export is_component=false |
60 | 62 | else
|
61 | 63 | export is_debug=false
|
62 | 64 | export is_official=true
|
| 65 | + if [[ "${{ matrix.shared }}" == "Shared" ]] ; then |
| 66 | + export is_component=true |
| 67 | + else |
| 68 | + export is_component=false |
| 69 | + fi |
63 | 70 | fi
|
64 | 71 | if [[ "${{ runner.os }}" == "Windows" ]] ; then
|
65 | 72 | clang++ --version
|
66 | 73 | export gn_flags='is_trivial_abi=false win_vc="C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC" win_toolchain_version="17.10" win_sdk="C:\\Program Files\\Windows Kits\\10" win_sdk_version="10.0.22621.0" cc="clang" cxx="clang++" clang_win="C:\Program Files\LLVM" clang_win_version="18.1"'
|
67 | 74 | if [[ "${{ matrix.mode }}" == "Debug" ]] ; then
|
68 |
| - export gn_flags="$gn_flags extra_cflags=[\"-MTd\"]" |
| 75 | + if [[ "${{ matrix.shared }}" == "Shared" ]] ; then |
| 76 | + export gn_flags="$gn_flags extra_cflags=[\"-MDd\"]" |
| 77 | + else |
| 78 | + export gn_flags="$gn_flags extra_cflags=[\"-MTd\"]" |
| 79 | + fi |
69 | 80 | else
|
70 |
| - export gn_flags="$gn_flags extra_cflags=[\"-MT\"]" |
| 81 | + if [[ "${{ matrix.shared }}" == "Shared" ]] ; then |
| 82 | + export gn_flags="$gn_flags extra_cflags=[\"-MD\"]" |
| 83 | + else |
| 84 | + export gn_flags="$gn_flags extra_cflags=[\"-MT\"]" |
| 85 | + fi |
71 | 86 | fi
|
72 | 87 | elif [[ "${{ runner.os }}" == "macOS" ]] ; then
|
73 | 88 | if [[ "${{ matrix.arch }}" == arm64 ]] ; then
|
|
78 | 93 | else
|
79 | 94 | export gn_flags='cc="clang-12" cxx="clang++-12"'
|
80 | 95 | fi
|
81 |
| - gn gen out/${{ matrix.mode }}-${{ matrix.arch }} --args="is_debug=$is_debug is_official_build=$is_official skia_use_system_expat=false skia_use_system_icu=false skia_use_system_libjpeg_turbo=false skia_use_system_libpng=false skia_use_system_libwebp=false skia_use_system_zlib=false skia_use_freetype=true skia_use_harfbuzz=true skia_pdf_subset_harfbuzz=true skia_use_system_freetype2=false skia_use_system_harfbuzz=false target_cpu=\"${{ matrix.arch }}\" $gn_flags" |
| 96 | + gn gen out/${{ matrix.shared }}-${{ matrix.mode }}-${{ matrix.arch }} --args="is_debug=$is_debug is_official_build=$is_official is_component_build=$is_component skia_use_system_expat=false skia_use_system_icu=false skia_use_system_libjpeg_turbo=false skia_use_system_libpng=false skia_use_system_libwebp=false skia_use_system_zlib=false skia_use_freetype=true skia_use_harfbuzz=true skia_pdf_subset_harfbuzz=true skia_use_system_freetype2=false skia_use_system_harfbuzz=false target_cpu=\"${{ matrix.arch }}\" $gn_flags" |
82 | 97 | - name: Compiling
|
83 |
| - run: ninja -C out/${{ matrix.mode }}-${{ matrix.arch }} skia modules |
| 98 | + run: ninja -C out/${{ matrix.shared }}-${{ matrix.mode }}-${{ matrix.arch }} skia modules |
84 | 99 | - name: Copying Files
|
85 | 100 | shell: bash
|
86 | 101 | run: |
|
|
94 | 109 | else
|
95 | 110 | export cp=cp
|
96 | 111 | fi
|
97 |
| - export dst=Skia-${{ runner.os }}-${{ matrix.mode }}-${{ matrix.arch }} |
| 112 | + export dst=Skia-${{ runner.os }}-${{ matrix.shared }}-${{ matrix.mode }}-${{ matrix.arch }} |
98 | 113 | mkdir $dst
|
99 | 114 | $cp -R --parents \
|
100 | 115 | out/${{ matrix.mode }}-${{ matrix.arch }}/args.gn \
|
@@ -204,5 +219,5 @@ jobs:
|
204 | 219 | - name: Uploading Artifact
|
205 | 220 | uses: actions/upload-artifact@v4
|
206 | 221 | with:
|
207 |
| - name: Skia-${{ runner.os }}-${{ matrix.mode }}-${{ matrix.arch }} |
208 |
| - path: Skia-${{ runner.os }}-${{ matrix.mode }}-${{ matrix.arch }} |
| 222 | + name: Skia-${{ runner.os }}-${{ matrix.shared }}-${{ matrix.mode }}-${{ matrix.arch }} |
| 223 | + path: Skia-${{ runner.os }}-${{ matrix.shared }}-${{ matrix.mode }}-${{ matrix.arch }} |
0 commit comments