File tree Expand file tree Collapse file tree 2 files changed +20
-6
lines changed Expand file tree Collapse file tree 2 files changed +20
-6
lines changed Original file line number Diff line number Diff line change 55 weasyprint-build :
66 name : Build WeasyPrint
77 runs-on : ubuntu-latest
8+ strategy :
9+ matrix :
10+ version : ["3.12", "3.13"]
11+ env :
12+ RUNTIME : ${{ matrix.version }}
813 steps :
914 - uses : actions/checkout@v4
1015 - name : Build Layer
11- run : make build/weasyprint-layer-python3.12 .zip
16+ run : make build/weasyprint-layer-python${{ matrix.version }} .zip
1217 - name : Test weasyprint
1318 run : |
1419 mkdir output
1520 make test.start.container &
1621 sleep 1
17- TEST_FILENAME=output/report.pdf make test.print.report
22+ make test.print.report
1823 rm -rf build/opt
24+ env :
25+ TEST_FILENAME : output/report${{ matrix.version }}.pdf
1926 - name : Upload Build
2027 uses : actions/upload-artifact@v4
2128 with :
@@ -26,13 +33,20 @@ jobs:
2633 with :
2734 name : WeasyPrint Test Results
2835 path : output
36+ weasyprint-release :
37+ name : Release WeasyPrint
38+ runs-on : ubuntu-latest
39+ needs : [weasyprint-build]
40+ steps :
41+ - name : Download build
42+ uses : actions/download-artifact@v4
43+ with :
44+ name : build
2945 - name : Create WeasyPrint Release
3046 if : startsWith(github.ref, 'refs/tags/weasyprint-')
3147 uses : softprops/action-gh-release@4634c16e79c963813287e889244c50009e7f0981
3248 with :
33- files : |
34- ./build/weasyprint-layer-python3.12.zip
35- ./build/weasyprint-layer-python3.12-no-fonts.zip
49+ files : ./build/weasyprint-layer-python*
3650
3751 ghostscript-build :
3852 name : Build GhostScript
Original file line number Diff line number Diff line change 11PLATFORM ?= linux/amd64
22RUNTIME ?= 3.12
33TEST_FILENAME ?= report.pdf
4- DOCKER_RUN =docker run --rm --platform=${PLATFORM}
4+ DOCKER_RUN =docker run --rm --platform=${PLATFORM} -e RUNTIME_VERSION=${RUNTIME}
55
66.PHONY : stack.deploy.weasyprint clean test.start.container test.print.report
77
You can’t perform that action at this time.
0 commit comments