|
50 | 50 | with: |
51 | 51 | name: textractor-lambda-p310 |
52 | 52 | path: lambda_layer/ |
| 53 | + lambda-build-p311: |
| 54 | + runs-on: ubuntu-latest |
| 55 | + container: public.ecr.aws/sam/build-python3.11:latest |
| 56 | + steps: |
| 57 | + - uses: actions/checkout@v3 |
| 58 | + with: |
| 59 | + ref: 'master' |
| 60 | + - name: Install and build |
| 61 | + run: | |
| 62 | + mkdir -p lambda_layer/python && \ |
| 63 | + cd lambda_layer/python && \ |
| 64 | + pip3 install ../../ --target=. |
| 65 | + - uses: actions/upload-artifact@v3 |
| 66 | + with: |
| 67 | + name: textractor-lambda-p311 |
| 68 | + path: lambda_layer/ |
| 69 | + lambda-build-p312: |
| 70 | + runs-on: ubuntu-latest |
| 71 | + container: public.ecr.aws/sam/build-python3.12:latest |
| 72 | + steps: |
| 73 | + - uses: actions/checkout@v3 |
| 74 | + with: |
| 75 | + ref: 'master' |
| 76 | + - name: Install and build |
| 77 | + run: | |
| 78 | + mkdir -p lambda_layer/python && \ |
| 79 | + cd lambda_layer/python && \ |
| 80 | + pip3 install ../../ --target=. |
| 81 | + - uses: actions/upload-artifact@v3 |
| 82 | + with: |
| 83 | + name: textractor-lambda-p312 |
| 84 | + path: lambda_layer/ |
53 | 85 | lambda-build-p38-pandas: |
54 | 86 | runs-on: ubuntu-latest |
55 | 87 | container: public.ecr.aws/sam/build-python3.8:latest |
@@ -101,6 +133,40 @@ jobs: |
101 | 133 | with: |
102 | 134 | name: textractor-lambda-p310-pandas |
103 | 135 | path: lambda_layer/ |
| 136 | + lambda-build-p311-pandas: |
| 137 | + runs-on: ubuntu-latest |
| 138 | + container: public.ecr.aws/sam/build-python3.11:latest |
| 139 | + steps: |
| 140 | + - uses: actions/checkout@v3 |
| 141 | + with: |
| 142 | + ref: 'master' |
| 143 | + - name: Install and build |
| 144 | + run: | |
| 145 | + mkdir -p lambda_layer/python && \ |
| 146 | + cd lambda_layer/python && \ |
| 147 | + pip3 install ../../ --target=. && \ |
| 148 | + pip3 install pandas --target=. |
| 149 | + - uses: actions/upload-artifact@v3 |
| 150 | + with: |
| 151 | + name: textractor-lambda-p311-pandas |
| 152 | + path: lambda_layer/ |
| 153 | + lambda-build-p312-pandas: |
| 154 | + runs-on: ubuntu-latest |
| 155 | + container: public.ecr.aws/sam/build-python3.12:latest |
| 156 | + steps: |
| 157 | + - uses: actions/checkout@v3 |
| 158 | + with: |
| 159 | + ref: 'master' |
| 160 | + - name: Install and build |
| 161 | + run: | |
| 162 | + mkdir -p lambda_layer/python && \ |
| 163 | + cd lambda_layer/python && \ |
| 164 | + pip3 install ../../ --target=. && \ |
| 165 | + pip3 install pandas --target=. |
| 166 | + - uses: actions/upload-artifact@v3 |
| 167 | + with: |
| 168 | + name: textractor-lambda-p312-pandas |
| 169 | + path: lambda_layer/ |
104 | 170 | lambda-build-p38-pdf: |
105 | 171 | runs-on: ubuntu-latest |
106 | 172 | container: public.ecr.aws/sam/build-python3.8:latest |
@@ -216,3 +282,81 @@ jobs: |
216 | 282 | with: |
217 | 283 | name: textractor-lambda-p310-pdf |
218 | 284 | path: lambda_layer/ |
| 285 | + lambda-build-p311-pdf: |
| 286 | + runs-on: ubuntu-latest |
| 287 | + container: public.ecr.aws/sam/build-python3.11:latest |
| 288 | + steps: |
| 289 | + - uses: actions/checkout@v3 |
| 290 | + with: |
| 291 | + ref: 'master' |
| 292 | + - name: Install Poppler |
| 293 | + run: yum install -y poppler-utils which mlocate openjpeg-devel libjpeg-devel fontconfig-devel libtiff-devel libpng-devel && updatedb && mkdir -p lambda_layer/python/bin |
| 294 | + - name: Copy dependencies |
| 295 | + run: | |
| 296 | + cp /usr/lib64/libpoppler.so* lambda_layer/python/bin/ && \ |
| 297 | + cp $(which pdftoppm) lambda_layer/python/bin/ && \ |
| 298 | + cp $(which pdfinfo) lambda_layer/python/bin/ && \ |
| 299 | + cp $(which pdftocairo) lambda_layer/python/bin/ && \ |
| 300 | + cp /usr/lib64/libjpeg.so* lambda_layer/python/bin/ && \ |
| 301 | + cp /usr/lib64/libopenjpeg.so* lambda_layer/python/bin/ && \ |
| 302 | + cp /usr/lib64/libpng.so* lambda_layer/python/bin/ && \ |
| 303 | + cp /lib64/libz.so* lambda_layer/python/bin/ && \ |
| 304 | + cp /usr/lib64/libfreetype.so* lambda_layer/python/bin/ && \ |
| 305 | + cp /usr/lib64/libfontconfig.so* lambda_layer/python/bin/ && \ |
| 306 | + cp /usr/lib64/libnss3.so* lambda_layer/python/bin/ && \ |
| 307 | + cp /usr/lib64/libsmime3.so* lambda_layer/python/bin/ && \ |
| 308 | + cp /usr/lib64/liblcms2.so* lambda_layer/python/bin/ && \ |
| 309 | + cp /usr/lib64/libtiff.so* lambda_layer/python/bin/ && \ |
| 310 | + cp /lib64/libexpat.so* lambda_layer/python/bin/ && \ |
| 311 | + cp /usr/lib64/libjbig.so* lambda_layer/python/bin/ |
| 312 | + - name: Install and build |
| 313 | + run: | |
| 314 | + mkdir -p lambda_layer/python && \ |
| 315 | + cd lambda_layer/python && \ |
| 316 | + pip3 install ../../ --target=. && \ |
| 317 | + pip3 install pdf2image --target=. && \ |
| 318 | + cd .. \ |
| 319 | + && zip -r /textractor.zip python/ |
| 320 | + - uses: actions/upload-artifact@v3 |
| 321 | + with: |
| 322 | + name: textractor-lambda-p311-pdf |
| 323 | + path: lambda_layer/ |
| 324 | + lambda-build-p312-pdf: |
| 325 | + runs-on: ubuntu-latest |
| 326 | + container: public.ecr.aws/sam/build-python3.12:latest |
| 327 | + steps: |
| 328 | + - uses: actions/checkout@v3 |
| 329 | + with: |
| 330 | + ref: 'master' |
| 331 | + - name: Install Poppler |
| 332 | + run: yum install -y poppler-utils which mlocate openjpeg-devel libjpeg-devel fontconfig-devel libtiff-devel libpng-devel && updatedb && mkdir -p lambda_layer/python/bin |
| 333 | + - name: Copy dependencies |
| 334 | + run: | |
| 335 | + cp /usr/lib64/libpoppler.so* lambda_layer/python/bin/ && \ |
| 336 | + cp $(which pdftoppm) lambda_layer/python/bin/ && \ |
| 337 | + cp $(which pdfinfo) lambda_layer/python/bin/ && \ |
| 338 | + cp $(which pdftocairo) lambda_layer/python/bin/ && \ |
| 339 | + cp /usr/lib64/libjpeg.so* lambda_layer/python/bin/ && \ |
| 340 | + cp /usr/lib64/libopenjpeg.so* lambda_layer/python/bin/ && \ |
| 341 | + cp /usr/lib64/libpng.so* lambda_layer/python/bin/ && \ |
| 342 | + cp /lib64/libz.so* lambda_layer/python/bin/ && \ |
| 343 | + cp /usr/lib64/libfreetype.so* lambda_layer/python/bin/ && \ |
| 344 | + cp /usr/lib64/libfontconfig.so* lambda_layer/python/bin/ && \ |
| 345 | + cp /usr/lib64/libnss3.so* lambda_layer/python/bin/ && \ |
| 346 | + cp /usr/lib64/libsmime3.so* lambda_layer/python/bin/ && \ |
| 347 | + cp /usr/lib64/liblcms2.so* lambda_layer/python/bin/ && \ |
| 348 | + cp /usr/lib64/libtiff.so* lambda_layer/python/bin/ && \ |
| 349 | + cp /lib64/libexpat.so* lambda_layer/python/bin/ && \ |
| 350 | + cp /usr/lib64/libjbig.so* lambda_layer/python/bin/ |
| 351 | + - name: Install and build |
| 352 | + run: | |
| 353 | + mkdir -p lambda_layer/python && \ |
| 354 | + cd lambda_layer/python && \ |
| 355 | + pip3 install ../../ --target=. && \ |
| 356 | + pip3 install pdf2image --target=. && \ |
| 357 | + cd .. \ |
| 358 | + && zip -r /textractor.zip python/ |
| 359 | + - uses: actions/upload-artifact@v3 |
| 360 | + with: |
| 361 | + name: textractor-lambda-p312-pdf |
| 362 | + path: lambda_layer/ |
0 commit comments