-
Notifications
You must be signed in to change notification settings - Fork 67
59 lines (54 loc) · 2.7 KB
/
test.yaml
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
name: Package Test
on:
pull_request:
types: [ synchronize, opened ]
jobs:
package:
name: Test
runs-on: windows-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v3
- name: Install Poppler
shell: bash -l {0}
run: conda install -c conda-forge poppler -y
- name: Run Package Script
shell: bash -l {0}
run: ./package.sh
env:
PKGS_PATH_DIR: /c/Users/runneradmin/conda_pkgs_dir
- name: Zip Release
run: Compress-Archive D:\a\poppler-windows\poppler-windows\poppler-${{ env.POPPLER_VERSION }} Release-${{ env.POPPLER_VERSION }}-${{ env.BUILD }}.zip
shell: pwsh
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: Poppler-${{ env.POPPLER_VERSION }}-${{ env.BUILD }}
path: D:\a\poppler-windows\poppler-windows\Release-${{ env.POPPLER_VERSION }}-${{ env.BUILD }}.zip
- name: Remove Poppler
shell: bash -l {0}
run: conda remove -c conda-forge poppler -y
- name: Test pdfattach
run: D:\a\poppler-windows\poppler-windows\poppler-${{ env.POPPLER_VERSION }}\Library\bin\pdfattach.exe D:\a\poppler-windows\poppler-windows\sample.pdf D:\a\poppler-windows\poppler-windows\sample.pdf test.pdf
- name: Test pdfdetach
run: D:\a\poppler-windows\poppler-windows\poppler-${{ env.POPPLER_VERSION }}\Library\bin\pdfdetach.exe -list D:\a\poppler-windows\poppler-windows\sample.pdf
- name: Test pdffonts
run: D:\a\poppler-windows\poppler-windows\poppler-${{ env.POPPLER_VERSION }}\Library\bin\pdffonts.exe -v
- name: Test pdfimages
run: D:\a\poppler-windows\poppler-windows\poppler-${{ env.POPPLER_VERSION }}\Library\bin\pdfimages.exe -v
- name: Test pdfinfo
run: D:\a\poppler-windows\poppler-windows\poppler-${{ env.POPPLER_VERSION }}\Library\bin\pdfinfo.exe -v
- name: Test pdftocairo
run: D:\a\poppler-windows\poppler-windows\poppler-${{ env.POPPLER_VERSION }}\Library\bin\pdftocairo.exe -v
- name: Test pdftohtml
run: D:\a\poppler-windows\poppler-windows\poppler-${{ env.POPPLER_VERSION }}\Library\bin\pdftohtml.exe -v
- name: Test pdftoppm
run: D:\a\poppler-windows\poppler-windows\poppler-${{ env.POPPLER_VERSION }}\Library\bin\pdftoppm.exe -v
- name: Test pdftops
run: D:\a\poppler-windows\poppler-windows\poppler-${{ env.POPPLER_VERSION }}\Library\bin\pdftops.exe -v
- name: Test pdftotext
run: D:\a\poppler-windows\poppler-windows\poppler-${{ env.POPPLER_VERSION }}\Library\bin\pdftotext.exe -v
- name: Test pdfunite
run: D:\a\poppler-windows\poppler-windows\poppler-${{ env.POPPLER_VERSION }}\Library\bin\pdfunite.exe -v