Skip to content

Commit 266d992

Browse files
authored
Update build-pdf.yml
1 parent 27b6329 commit 266d992

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

.github/workflows/build-pdf.yml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,33 +28,40 @@ jobs:
2828
- name: Install system dependencies
2929
run: |
3030
sudo apt-get update -qq
31+
32+
# خطوط عربية
3133
sudo apt-get install -y \
32-
# ── خطوط عربية احترافية ──────────────────
33-
fonts-amiri \
34+
fonts-hosny-amiri \
3435
fonts-arabeyes \
3536
fonts-farsiweb \
36-
fonts-hosny-amiri \
3737
fonts-liberation \
3838
fonts-dejavu \
3939
fonts-noto \
4040
fonts-noto-core \
41-
fonts-noto-extra \
42-
# ── أدوات PDF ───────────────────────────
41+
fontconfig
42+
43+
# حاول تثبيت حزم اختيارية (قد لا تكون متاحة في كل إصدار)
44+
sudo apt-get install -y fonts-noto-extra 2>/dev/null || true
45+
46+
# أدوات PDF
47+
sudo apt-get install -y \
4348
weasyprint \
4449
wkhtmltopdf \
45-
poppler-utils \
46-
# ── Python لمعالجة العربية ───────────────
50+
poppler-utils
51+
52+
# Python
53+
sudo apt-get install -y \
4754
python3-pip \
4855
python3-bidi \
49-
python3-arabic-reshaper \
50-
# ── تحديث ذاكرة الخطوط ──────────────────
51-
fontconfig
56+
python3-arabic-reshaper
57+
5258
sudo fc-cache -f -v
5359
5460
- name: Install Python Arabic libraries
5561
run: |
56-
pip3 install arabic-reshaper python-bidi weasyprint --break-system-packages || \
57-
pip3 install arabic-reshaper python-bidi weasyprint
62+
pip3 install arabic-reshaper python-bidi weasyprint --break-system-packages 2>/dev/null || \
63+
pip3 install arabic-reshaper python-bidi weasyprint 2>/dev/null || \
64+
echo "pip install skipped - using system packages"
5865
5966
- name: Install Ruby dependencies
6067
run: bundle install

0 commit comments

Comments
 (0)