-
Notifications
You must be signed in to change notification settings - Fork 34
64 lines (62 loc) · 1.86 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Build and Release
on: push
jobs:
weasyprint-build:
name: Build WeasyPrint
runs-on: ubuntu-latest
strategy:
matrix:
version: ["3.12", "3.13"]
env:
RUNTIME: ${{ matrix.version }}
steps:
- uses: actions/checkout@v4
- name: Build Layer
run: make build/weasyprint-layer-python${{ matrix.version }}.zip
- name: Test weasyprint
run: |
mkdir output
make test.start.container &
sleep 1
make test.print.report
rm -rf build/opt
env:
TEST_FILENAME: build/test-report-${{ matrix.version }}.pdf
- name: Upload Build
uses: actions/upload-artifact@v4
with:
name: WeasyPrint Layer Build ${{ matrix.version }}
path: build
weasyprint-release:
name: Release WeasyPrint
runs-on: ubuntu-latest
needs: [weasyprint-build]
if: startsWith(github.ref, 'refs/tags/weasyprint-')
steps:
- name: Download build
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Create WeasyPrint Release
uses: softprops/action-gh-release@4634c16e79c963813287e889244c50009e7f0981
with:
files: ./artifacts/**/weasyprint-layer-python*
ghostscript-build:
name: Build GhostScript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Layer
run: |
make build/ghostscript-layer.zip
rm -rf build/opt
- name: Upload Build
uses: actions/upload-artifact@v4
with:
name: GhostScript Layer Build
path: build
- name: Create GhostScript Release
if: startsWith(github.ref, 'refs/tags/ghostscript-')
uses: softprops/action-gh-release@4634c16e79c963813287e889244c50009e7f0981
with:
files: ./build/ghostscript-layer.zip