comparison mupdf-source/thirdparty/zlib/.github/workflows/configure.yml @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
comparison
equal deleted inserted replaced
1:1d09e1dec1d9 2:b50eed0cc0ef
1 name: Configure
2 on: [push, pull_request]
3 jobs:
4 ci-configure:
5 name: ${{ matrix.name }}
6 runs-on: ${{ matrix.os }}
7 strategy:
8 fail-fast: false
9 matrix:
10 include:
11 - name: Ubuntu GCC
12 os: ubuntu-latest
13 compiler: gcc
14 configure-args: --warn
15
16 # Test out of source builds
17 - name: Ubuntu GCC OSB
18 os: ubuntu-latest
19 compiler: gcc
20 configure-args: --warn
21 build-dir: ../build
22 src-dir: ../zlib
23
24 - name: Ubuntu GCC ARM SF
25 os: ubuntu-latest
26 compiler: arm-linux-gnueabi-gcc
27 configure-args: --warn
28 chost: arm-linux-gnueabi
29 packages: qemu qemu-user gcc-arm-linux-gnueabi libc-dev-armel-cross
30 qemu-run: qemu-arm -L /usr/arm-linux-gnueabi
31
32 - name: Ubuntu GCC ARM HF
33 os: ubuntu-latest
34 compiler: arm-linux-gnueabihf-gcc
35 configure-args: --warn
36 chost: arm-linux-gnueabihf
37 packages: qemu qemu-user gcc-arm-linux-gnueabihf libc-dev-armhf-cross
38 qemu-run: qemu-arm -L /usr/arm-linux-gnueabihf
39
40 - name: Ubuntu GCC AARCH64
41 os: ubuntu-latest
42 compiler: aarch64-linux-gnu-gcc
43 configure-args: --warn
44 chost: aarch64-linux-gnu
45 packages: qemu qemu-user gcc-aarch64-linux-gnu libc-dev-arm64-cross
46 qemu-run: qemu-aarch64 -L /usr/aarch64-linux-gnu
47
48 - name: Ubuntu GCC PPC
49 os: ubuntu-latest
50 compiler: powerpc-linux-gnu-gcc
51 configure-args: --warn --static
52 chost: powerpc-linux-gnu
53 packages: qemu qemu-user gcc-powerpc-linux-gnu libc-dev-powerpc-cross
54 qemu-run: qemu-ppc -L /usr/powerpc-linux-gnu
55 cflags: -static
56 ldflags: -static
57
58 - name: Ubuntu GCC PPC64
59 os: ubuntu-latest
60 compiler: powerpc64-linux-gnu-gcc
61 configure-args: --warn --static
62 chost: powerpc-linux-gnu
63 packages: qemu qemu-user gcc-powerpc64-linux-gnu libc-dev-ppc64-cross
64 qemu-run: qemu-ppc64 -L /usr/powerpc64-linux-gnu
65 cflags: -static
66 ldflags: -static
67
68 - name: Ubuntu GCC PPC64LE
69 os: ubuntu-latest
70 compiler: powerpc64le-linux-gnu-gcc
71 configure-args: --warn
72 chost: powerpc64le-linux-gnu
73 packages: qemu qemu-user gcc-powerpc64le-linux-gnu libc-dev-ppc64el-cross
74 qemu-run: qemu-ppc64le -L /usr/powerpc64le-linux-gnu
75
76 - name: Ubuntu GCC S390X
77 os: ubuntu-latest
78 compiler: s390x-linux-gnu-gcc
79 configure-args: --warn --static
80 chost: s390x-linux-gnu
81 packages: qemu qemu-user gcc-s390x-linux-gnu libc-dev-s390x-cross
82 qemu-run: qemu-s390x -L /usr/s390x-linux-gnu
83 cflags: -static
84 ldflags: -static
85
86 - name: macOS GCC
87 os: macos-latest
88 compiler: gcc-11
89 configure-args: --warn
90
91 - name: macOS Clang
92 os: macos-latest
93 compiler: clang
94 configure-args: --warn
95
96 steps:
97 - name: Checkout repository
98 uses: actions/checkout@v3
99
100 - name: Install packages (Ubuntu)
101 if: runner.os == 'Linux' && matrix.packages
102 run: |
103 sudo apt-get update
104 sudo apt-get install -y ${{ matrix.packages }}
105
106 - name: Generate project files
107 run: |
108 [ -d ${{ matrix.build-dir || '.' }} ] || mkdir ${{ matrix.build-dir || '.' }}
109 cd ${{ matrix.build-dir || '.' }}
110 ${{ matrix.src-dir || '.' }}/configure ${{ matrix.configure-args }}
111 env:
112 CC: ${{ matrix.compiler }}
113 CFLAGS: ${{ matrix.cflags }}
114 LDFLAGS: ${{ matrix.ldflags }}
115 CHOST: ${{ matrix.chost }}
116
117 - name: Compile source code
118 run: make -j2
119 working-directory: ${{ matrix.build-dir }}
120
121 - name: Run test cases
122 run: |
123 make test
124 make cover
125 working-directory: ${{ matrix.build-dir }}
126 env:
127 QEMU_RUN: ${{ matrix.qemu-run }}
128
129 - name: Upload build errors
130 uses: actions/upload-artifact@v3
131 if: failure()
132 with:
133 name: ${{ matrix.name }} (configure)
134 path: |
135 ${{ matrix.build-dir || '.' }}/configure.log
136 retention-days: 7