-
Notifications
You must be signed in to change notification settings - Fork 1
148 lines (139 loc) · 4.15 KB
/
build.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# This workflow will run to update the installer library of
# Docker images. These are the images which provide updated wheels
# .deb installation packages or maybe just some compiled library
name: Build Installer Library
on:
workflow_dispatch:
inputs:
pikepdf_version:
description: 'pikepdf version'
type: string
required: true
default: '7.2.0'
psycopg2_version:
description: 'psycopg2 version'
type: string
required: true
default: '2.9.6'
jbig2enc_version:
description: 'jbig2enc version'
type: string
required: true
default: '0.29'
lxml_version:
description: 'lxml version'
type: string
required: true
default: '4.9.2'
pillow_version:
description: 'pillow version'
type: string
required: true
default: '9.5.0'
scipy_version:
description: 'scipy version'
type: string
required: true
default: '1.10.1'
concurrency:
group: build-installer-library
cancel-in-progress: false
jobs:
build-jbig2enc:
name: jbig2enc @ ${{ inputs.jbig2enc_version }}
uses: ./.github/workflows/reusable-builder.yml
secrets: inherit
with:
name: jbig2enc
version: ${{ inputs.jbig2enc_version }}
dockerfile: ./jbig2enc.dockerfile
build-args: |
JBIG2ENC_VERSION=${{ inputs.jbig2enc_version }}
build-psycopg2-wheel:
name: psycopg2 @ ${{ inputs.psycopg2_version }}
uses: ./.github/workflows/reusable-builder.yml
secrets: inherit
with:
name: psycopg2
version: ${{ inputs.psycopg2_version }}
dockerfile: ./psycopg2.dockerfile
build-args: |
PSYCOPG2_VERSION=${{ inputs.psycopg2_version }}
build-pikepdf-wheel:
name: pikepdf @ ${{ inputs.pikepdf_version }}
uses: ./.github/workflows/reusable-builder.yml
secrets: inherit
with:
name: pikepdf
version: ${{ inputs.pikepdf_version }}
dockerfile: ./pikepdf.dockerfile
build-args: |
PIKEPDF_VERSION=${{ inputs.pikepdf_version }}
PILLOW_VERSION=${{ inputs.pillow_version }}
LXML_VERSION=${{ inputs.lxml_version }}
# build-scipy-wheel:
# name: scipy @ ${{ inputs.scipy_version }}
# if: false
# uses: ./.github/workflows/reusable-builder.yml
# secrets: inherit
# with:
# name: scipy
# version: ${{ inputs.scipy_version }}
# dockerfile: ./scipy.dockerfile
# build-args: |
# SCIPY_VERSION=${{ inputs.scipy_version }}
commit-binary-files:
name: Store installers
needs:
- build-jbig2enc
- build-psycopg2-wheel
- build-pikepdf-wheel
runs-on: ubuntu-22.04
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
ref: binary-library
-
name: Install system dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -qq --no-install-recommends tree
-
name: Clear old installers
run: |
rm --verbose --recursive --force pikepdf
rm --verbose --recursive --force jbig2enc
rm --verbose --recursive --force psycopg2
-
name: Download psycopg2 files
uses: actions/download-artifact@v3
with:
name: psycopg2-${{ inputs.psycopg2_version }}
path: ./psycopg2
-
name: Download pikepdf files
uses: actions/download-artifact@v3
with:
name: pikepdf-${{ inputs.pikepdf_version }}
path: ./pikepdf
-
name: Download jbig2enc files
uses: actions/download-artifact@v3
with:
name: jbig2enc-${{ inputs.jbig2enc_version }}
path: ./jbig2enc
-
name: Show file structure
run: |
tree .
-
name: Commit files
run: |
git config --global user.name "github-actions"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add pikepdf/ qpdf/ psycopg2/ jbig2enc/
git status
git commit -m "Updating installer packages" || true
git push origin || true