Skip to content

Commit 704000e

Browse files
kartbenfabiobaltieri
authored andcommitted
ci: doc-build: compress HTML docs more efficiently
Compressing doc build to upload it to AWS S3 is talking several minutes. Use -T0 to run xz in parallel mode to speed up the process. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1 parent ab850de commit 704000e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/doc-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ jobs:
149149
150150
- name: compress-docs
151151
run: |
152-
tar cfJ html-output.tar.xz --directory=doc/_build html
153-
tar cfJ api-output.tar.xz --directory=doc/_build html/doxygen/html
154-
tar cfJ api-coverage.tar.xz coverage-report
152+
tar --use-compress-program="xz -T0" -cf html-output.tar.xz --directory=doc/_build html
153+
tar --use-compress-program="xz -T0" -cf api-output.tar.xz --directory=doc/_build html/doxygen/html
154+
tar --use-compress-program="xz -T0" -cf api-coverage.tar.xz coverage-report
155155
156156
- name: upload-build
157157
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)