Skip to content

Commit d8815ca

Browse files
committed
Updating to latest version of quick_build.yml
1 parent 6e49577 commit d8815ca

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

.github/workflows/quick_build.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: QuickBuild v4.6 20250905
1+
name: QuickBuild v4.6 20251010
22

33
on:
44
push:
@@ -24,7 +24,7 @@ jobs:
2424

2525
- name: Install Build Packages
2626
# run: "sudo apt-get update && sudo apt-get install -y xsltproc hunspell pandoc"
27-
run: "sudo apt-get update && sudo apt-get install -y xsltproc hunspell python3-lxml"
27+
run: "sudo apt-get update && sudo apt-get install -y hunspell python3-lxml xsltproc"
2828

2929
- name: Install Jing
3030
run: wget -O - https://github.com/relaxng/jing-trang/releases/download/V20181222/jing-20181222.zip | jar -x
@@ -52,14 +52,12 @@ jobs:
5252
- name: PDFify
5353
if: ${{ env.action_is_release == 'YES' }}
5454
run: |
55-
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-3/wkhtmltox_0.12.6.1-3.jammy_amd64.deb
56-
sudo apt install -y ./wkhtmltox_0.12.6.1-3.jammy_amd64.deb && rm wkhtmltox_0.12.6.1-3.jammy_amd64.deb
57-
sudo apt install -y xvfb
55+
sudo apt install -y chromium
5856
cd output
5957
for aa in *.html; do
60-
xvfb-run --auto-servernum --server-args='-screen 0, 1024x768x16' $(which wkhtmltopdf) \
61-
--enable-local-file-access --javascript-delay 15000 --footer-right '[page]' \
62-
file://${PWD}/${aa}?expand=on ${aa}.pdf
58+
chromium --no-sandbox --headless --disable-gpu --no-pdf-header-footer --timeout=10000 \
59+
--print-to-pdf=${aa}.pdf \
60+
file://${PWD}/${aa}
6361
done
6462
6563
- id: validate

.github/workflows/quick_build_pdf.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: QuickBuild v4.6pdf 20250905
1+
name: QuickBuild v4.6pdf 20251010
22
# Run only on demand to do quick build with both pdf and html output
33

44
on:
@@ -21,7 +21,7 @@ jobs:
2121

2222
- name: Install Build Packages
2323
# run: "sudo apt-get update && sudo apt-get install -y xsltproc hunspell pandoc"
24-
run: "sudo apt-get update && sudo apt-get install -y xsltproc hunspell python3-lxml"
24+
run: "sudo apt-get update && sudo apt-get install -y hunspell python3-lxml xsltproc"
2525

2626
- name: Install Jing
2727
run: wget -O - https://github.com/relaxng/jing-trang/releases/download/V20181222/jing-20181222.zip | jar -x
@@ -48,14 +48,12 @@ jobs:
4848
# PDFify
4949
- name: PDFify
5050
run: |
51-
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-3/wkhtmltox_0.12.6.1-3.jammy_amd64.deb
52-
sudo apt install -y ./wkhtmltox_0.12.6.1-3.jammy_amd64.deb && rm wkhtmltox_0.12.6.1-3.jammy_amd64.deb
53-
sudo apt install -y xvfb
51+
sudo apt install -y chromium
5452
cd output
5553
for aa in *.html; do
56-
xvfb-run --auto-servernum --server-args='-screen 0, 1024x768x16' $(which wkhtmltopdf) \
57-
--enable-local-file-access --javascript-delay 15000 --footer-right '[page]' \
58-
file://${PWD}/${aa}?expand=on ${aa}.pdf
54+
chromium --no-sandbox --headless --disable-gpu --no-pdf-header-footer --timeout=10000 \
55+
--print-to-pdf=${aa}.pdf \
56+
file://${PWD}/${aa}
5957
done
6058
6159
- id: validate

0 commit comments

Comments
 (0)