Debian Codegraph @

.github/workflows/main.yml

raw symbols SCIP
1 on:
2 push:
3 branches:
4 - main
5 tags:
6 - '!*'
7 pull_request:
8 branches:
9 - main
10
11 permissions:
12 contents: read
13
14 name: Main
15 jobs:
16 build_linux:
17 name: Build Linux
18 container:
19 image: ubuntu:22.04
20 runs-on: ubuntu-24.04
21
22 strategy:
23 fail-fast: false
24 matrix:
25 compiler: [ gcc, clang ]
26 include:
27 - compiler: gcc
28 cxx_compiler: g++
29 compiler_flags: -Wall -Wextra -Werror -Wno-builtin-declaration-mismatch
30 packages: gcc g++
31 - compiler: clang
32 cxx_compiler: clang++
33 compiler_flags: -Wall -Wextra -Werror -Wno-unused-function -Wno-incompatible-library-redeclaration
34 packages: clang
35
36 steps:
37 - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7.0.0
38 with:
39 persist-credentials: false
40
41 - name: Install dependencies
42 run: |
43 set -e
44 export DEBIAN_FRONTEND=noninteractive
45 apt-get update -y
46 apt-get install -y autoconf git libtool make pkg-config ${{ matrix.packages }}
47
48 - name: Configure ImageMagick
49 env:
50 CC: ${{ matrix.compiler }}
51 CXX: ${{ matrix.cxx_compiler }}
52 CFLAGS: ${{ matrix.compiler_flags }}
53 CXXFLAGS: ${{ matrix.compiler_flags }}
54 run: |
55 autoreconf -fiv
56 ./configure --with-quantum-depth=16 --enable-hdri=no --without-perl --prefix=/usr
57
58 - name: Build ImageMagick
59 run: |
60 make
61
62 - name: Test ImageMagick
63 run: |
64 make check || exit_code=$?
65 if [ "$exit_code" != "0" ] ; then cat ./test-suite.log ; fi
66 exit $exit_code
67
68 - name: Install ImageMagick
69 run: |
70 make install
71
72 build_macos:
73 name: Build MacOS x64
74 runs-on: macos-15-intel
75
76 steps:
77 - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7.0.0
78 with:
79 persist-credentials: false
80
81 - name: Install dependencies
82 run: |
83 set -e
84 export HOMEBREW_NO_AUTO_UPDATE=1
85 brew install automake fftw flif jbigkit
86
87 - name: Configure ImageMagick
88 run: |
89 export CFLAGS="-Wall -Wextra -Wdeclaration-after-statement -Wno-deprecated-declarations -Wno-incompatible-library-redeclaration -Wno-incompatible-pointer-types-discards-qualifiers -Wno-missing-declarations -Wno-unused-function -Wno-unused-parameter"
90 autoreconf -fiv
91 ./configure --with-quantum-depth=16 --enable-hdri=no --without-perl --with-fftw --with-flif
92
93 - name: Build ImageMagick
94 run: |
95 set -e
96 make install
97
98 build_macos_arm64:
99 name: Build MacOS arm64
100 runs-on: macos-14
101
102 steps:
103 - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7.0.0
104 with:
105 persist-credentials: false
106
107 - name: Install dependencies
108 run: |
109 set -e
110 export HOMEBREW_NO_AUTO_UPDATE=1
111 brew install automake fftw flif jbigkit libraqm librsvg libtool libxml2 pango
112
113 - name: Configure ImageMagick
114 run: |
115 export CFLAGS="-Wall -Wextra -Werror -Wdeclaration-after-statement -Wno-deprecated-declarations -Wno-incompatible-library-redeclaration -Wno-incompatible-pointer-types-discards-qualifiers -Wno-missing-declarations -Wno-unused-function -Wno-unused-parameter"
116 export LDFLAGS=$(pkg-config --libs libjpeg)
117 autoreconf -fiv
118 ./configure --with-quantum-depth=16 --enable-hdri=no --without-perl --with-fftw --with-flif --with-rsvg
119
120 - name: Build ImageMagick
121 run: |
122 make
123
124 - name: Test ImageMagick
125 run: |
126 make check || exit_code=$?
127 if [ "$exit_code" != "0" ] ; then cat ./test-suite.log ; fi
128 exit $exit_code
129
130 - name: Install ImageMagick
131 run: |
132 sudo make install
133
134 build_windows:
135 name: Build Windows ${{matrix.architecture}}
136 runs-on: windows-2025-vs2026
137
138 strategy:
139 fail-fast: false
140 matrix:
141 architecture: [ x64, arm64, x86 ]
142
143 steps:
144 - name: Clone ImageMagick
145 uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7.0.0
146 with:
147 path: ImageMagick
148 persist-credentials: false
149
150 - name: Download configure
151 shell: cmd
152 run: |
153 ImageMagick\.github\build\windows\download-configure.cmd
154
155 - name: Download dependencies
156 shell: cmd
157 run: |
158 ImageMagick\.github\build\windows\download-dependencies.cmd windows-${{matrix.architecture}}-static-openMP.zip
159
160 - name: Configure ImageMagick
161 shell: cmd
162 working-directory: Configure
163 run: |
164 Configure.Release.x64.exe /noWizard /VS2026 /${{matrix.architecture}} /static
165
166 - name: Build ImageMagick
167 shell: cmd
168 run: |
169 call "C:\Program Files\Microsoft Visual Studio\18\Enterprise\Common7\Tools\VsDevCmd.bat"
170 msbuild IM7.Static.${{matrix.architecture}}.sln /m /t:Rebuild /p:Configuration=Release,Platform=${{matrix.architecture}}
171
172 build_msys2:
173 name: Build MSYS2
174 runs-on: windows-2025
175
176 steps:
177 - name: Prepare git
178 run: git config --global core.autocrlf false
179
180 - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7.0.0
181 with:
182 persist-credentials: false
183
184 - uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 #v2.32.0
185 with:
186 install: mingw-w64-x86_64-toolchain base-devel binutils
187 update: true
188 cache: false
189
190 - name: Build ImageMagick
191 run: cd .github/build/msys2 && makepkg-mingw --noconfirm --syncdeps
192 env:
193 MINGW_ARCH: mingw64
194 PKGEXT: ".pkg.tar.xz"
195 shell: msys2 {0}