Skip to content

Commit 4de44b9

Browse files
authored
chore(🪨): Fix Skia Graphite Build (#3162)
1 parent 20adf69 commit 4de44b9

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

‎.github/workflows/build-skia-graphite.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ jobs:
1313
id: setup-ndk
1414
uses: nttld/setup-ndk@afb4c9964b521afb97c864b7d40b11e6911bd410 # v1.5.0
1515
with:
16-
ndk-version: r22b
16+
ndk-version: r26d
17+
18+
- name: Set ANDROID_NDK
19+
run: echo "ANDROID_NDK=$ANDROID_HOME/ndk-bundle" >> $GITHUB_ENV
1720

1821
- name: Setup Ninja
1922
uses: seanmiddleditch/gha-setup-ninja@master
@@ -24,6 +27,20 @@ jobs:
2427
download_skia: 'false'
2528
github_token: ${{ secrets.GITHUB_TOKEN }}
2629

30+
- name: Apply Dawn patch
31+
run: |
32+
DAWN_GNI_FILE="./externals/skia/build_overrides/dawn.gni"
33+
if [ -f "$DAWN_GNI_FILE" ]; then
34+
echo "Applying patch to dawn.gni..."
35+
# Remove the specified lines from the end of the file
36+
sed -i.bak '/# PartitionAlloc is an optional dependency:/,$d' "$DAWN_GNI_FILE"
37+
echo "Patch applied successfully."
38+
echo "Modified dawn.gni content:"
39+
cat "$DAWN_GNI_FILE"
40+
else
41+
echo "Warning: dawn.gni file not found at $DAWN_GNI_FILE"
42+
fi
43+
2744
- name: Build Skia with Graphite
2845
working-directory: ./packages/skia
2946
env:

0 commit comments

Comments
 (0)