| 1 |
on: |
| 2 |
workflow_dispatch: |
| 3 |
schedule: |
| 4 |
- cron: 0 6 * * * |
| 5 |
push: |
| 6 |
branches: |
| 7 |
- main |
| 8 |
paths: |
| 9 |
- '.github/workflows/daily.yml' |
| 10 |
pull_request: |
| 11 |
branches: |
| 12 |
- main |
| 13 |
paths: |
| 14 |
- '.github/workflows/daily.yml' |
| 15 |
|
| 16 |
permissions: |
| 17 |
contents: read |
| 18 |
|
| 19 |
name: Daily |
| 20 |
jobs: |
| 21 |
change_log: |
| 22 |
name: 'Create ChangeLog.md' |
| 23 |
runs-on: ubuntu-24.04 |
| 24 |
|
| 25 |
steps: |
| 26 |
- name: Checkout |
| 27 |
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 |
| 28 |
with: |
| 29 |
fetch-depth: 0 |
| 30 |
persist-credentials: false |
| 31 |
|
| 32 |
- name: Install dependencies |
| 33 |
run: npm install -g git+https://github.com/CookPete/auto-changelog.git#5ba380ad0044dd5be1b2bf4067f64d87202c98bd |
| 34 |
|
| 35 |
- name: Create ChangeLog.md |
| 36 |
run: | |
| 37 |
export NEXT_VERSION=$(grep -oP "PACKAGE_VERSION='\K[0-9\.-]*" configure) |
| 38 |
git tag $NEXT_VERSION |
| 39 |
auto-changelog --sort-commits date |
| 40 |
mkdir artifacts |
| 41 |
mv ChangeLog.md artifacts/ChangeLog.md |
| 42 |
|
| 43 |
- name: Upload ChangeLog.md |
| 44 |
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a |
| 45 |
with: |
| 46 |
name: ChangeLog |
| 47 |
path: artifacts |
| 48 |
|
| 49 |
build_linux: |
| 50 |
name: 'Linux Q${{matrix.quantum}}-x64 hdri=${{matrix.hdri}} (${{matrix.modules}}) (${{ matrix.compiler }})' |
| 51 |
container: |
| 52 |
image: ubuntu:22.04 |
| 53 |
runs-on: ubuntu-24.04 |
| 54 |
|
| 55 |
strategy: |
| 56 |
fail-fast: false |
| 57 |
matrix: |
| 58 |
compiler: [ gcc, clang ] |
| 59 |
quantum: [ 8, 16, 32, 64 ] |
| 60 |
hdri: [ yes, no ] |
| 61 |
modules: [ 'with-modules', 'without-modules' ] |
| 62 |
exclude: |
| 63 |
- quantum: 8 |
| 64 |
hdri: yes |
| 65 |
- quantum: 32 |
| 66 |
hdri: no |
| 67 |
- quantum: 64 |
| 68 |
hdri: no |
| 69 |
include: |
| 70 |
- compiler: gcc |
| 71 |
cxx_compiler: g++ |
| 72 |
compiler_flags: -Wall -Wextra -Werror -Wno-builtin-declaration-mismatch |
| 73 |
packages: gcc g++ |
| 74 |
- compiler: clang |
| 75 |
cxx_compiler: clang++ |
| 76 |
compiler_flags: -Wall -Wextra -Werror -Wno-unused-function -Wno-incompatible-library-redeclaration -Wno-compound-token-split-by-macro |
| 77 |
packages: clang |
| 78 |
|
| 79 |
steps: |
| 80 |
- name: Install dependencies |
| 81 |
run: | |
| 82 |
set -e |
| 83 |
export DEBIAN_FRONTEND=noninteractive |
| 84 |
apt update |
| 85 |
apt-get install -y autoconf libfontconfig1-dev libfreetype6-dev libltdl-dev make pkg-config ${{ matrix.packages }} |
| 86 |
|
| 87 |
- name: Clone msttcorefonts |
| 88 |
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 |
| 89 |
with: |
| 90 |
repository: ImageMagick/msttcorefonts |
| 91 |
persist-credentials: false |
| 92 |
|
| 93 |
- name: Install msttcorefonts |
| 94 |
run: | |
| 95 |
set -e |
| 96 |
./install.sh |
| 97 |
|
| 98 |
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 |
| 99 |
with: |
| 100 |
persist-credentials: false |
| 101 |
|
| 102 |
- name: Configure ImageMagick |
| 103 |
env: |
| 104 |
CC: ${{ matrix.compiler }} |
| 105 |
CXX: ${{ matrix.cxx_compiler }} |
| 106 |
CFLAGS: ${{ matrix.compiler_flags }} |
| 107 |
CXXFLAGS: ${{ matrix.compiler_flags }} |
| 108 |
run: | |
| 109 |
./configure --with-perl --with-quantum-depth=${{matrix.quantum}} --enable-hdri=${{matrix.hdri}} --${{matrix.modules}} |
| 110 |
|
| 111 |
- name: Build ImageMagick |
| 112 |
run: | |
| 113 |
make install |
| 114 |
|
| 115 |
- name: Test ImageMagick |
| 116 |
run: | |
| 117 |
make check || exit_code=$? |
| 118 |
if [ "$exit_code" != "0" ] ; then cat ./test-suite.log ; fi |
| 119 |
exit $exit_code |
| 120 |
|
| 121 |
- name: Test PerlMagick |
| 122 |
run: | |
| 123 |
cd PerlMagick |
| 124 |
make test TEST_VERBOSE=1 |
| 125 |
|
| 126 |
build_windows: |
| 127 |
name: Windows ${{matrix.quantum}}${{matrix.hdri_flag}}-${{matrix.architecture}} (${{matrix.buildType}}) |
| 128 |
needs: |
| 129 |
- change_log |
| 130 |
runs-on: windows-2025-vs2026 |
| 131 |
|
| 132 |
strategy: |
| 133 |
fail-fast: false |
| 134 |
matrix: |
| 135 |
architecture: [ x64, arm64, x86 ] |
| 136 |
buildType: [ dynamic, static ] |
| 137 |
quantum: [ Q8, Q16, Q32 ] |
| 138 |
hdri: [ hdri, noHdri ] |
| 139 |
exclude: |
| 140 |
- quantum: Q8 |
| 141 |
hdri: hdri |
| 142 |
- quantum: Q32 |
| 143 |
hdri: noHdri |
| 144 |
include: |
| 145 |
- hdri: hdri |
| 146 |
hdri_flag: -HDRI |
| 147 |
|
| 148 |
steps: |
| 149 |
- name: Clone ImageMagick |
| 150 |
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 |
| 151 |
with: |
| 152 |
path: ImageMagick |
| 153 |
persist-credentials: false |
| 154 |
|
| 155 |
- name: Download configure |
| 156 |
shell: cmd |
| 157 |
run: | |
| 158 |
ImageMagick\.github\build\windows\download-configure.cmd |
| 159 |
|
| 160 |
- name: Download dependencies |
| 161 |
shell: cmd |
| 162 |
run: | |
| 163 |
ImageMagick\.github\build\windows\download-dependencies.cmd windows-${{matrix.architecture}}-${{matrix.buildType}}-openMP.zip |
| 164 |
|
| 165 |
- name: Download ChangeLog.md |
| 166 |
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c |
| 167 |
with: |
| 168 |
name: ChangeLog |
| 169 |
path: ImageMagick |
| 170 |
|
| 171 |
- name: Configure ImageMagick |
| 172 |
shell: cmd |
| 173 |
working-directory: Configure |
| 174 |
run: | |
| 175 |
Configure.Release.x64.exe /noWizard /VS2026 /deprecated /${{matrix.architecture}} /${{matrix.buildType}} /${{matrix.quantum}} /${{matrix.hdri}} |
| 176 |
|
| 177 |
- name: Build ImageMagick |
| 178 |
shell: cmd |
| 179 |
run: | |
| 180 |
call "C:\Program Files\Microsoft Visual Studio\18\Enterprise\Common7\Tools\VsDevCmd.bat" |
| 181 |
msbuild /m /t:Rebuild /p:Configuration=Release,Platform=${{matrix.architecture}} |
| 182 |
|
| 183 |
build_windows_zero_configuration: |
| 184 |
name: 'Windows Q16-HDRI-x64 (zero configuration ${{matrix.buildType}})' |
| 185 |
runs-on: windows-2025-vs2026 |
| 186 |
|
| 187 |
strategy: |
| 188 |
fail-fast: false |
| 189 |
matrix: |
| 190 |
buildType: [ dynamic, static ] |
| 191 |
|
| 192 |
steps: |
| 193 |
- name: Clone ImageMagick |
| 194 |
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 |
| 195 |
with: |
| 196 |
path: ImageMagick |
| 197 |
persist-credentials: false |
| 198 |
|
| 199 |
- name: Download configure |
| 200 |
shell: cmd |
| 201 |
run: | |
| 202 |
ImageMagick\.github\build\windows\download-configure.cmd |
| 203 |
|
| 204 |
- name: Download dependencies |
| 205 |
shell: cmd |
| 206 |
run: | |
| 207 |
ImageMagick\.github\build\windows\download-dependencies.cmd windows-x64-${{matrix.buildType}}-openMP.zip |
| 208 |
|
| 209 |
- name: Configure ImageMagick |
| 210 |
shell: cmd |
| 211 |
working-directory: Configure |
| 212 |
run: | |
| 213 |
Configure.Release.x64.exe /noWizard /VS2026 /x64 /${{matrix.buildType}} /zeroConfigurationSupport |
| 214 |
|
| 215 |
- name: Build ImageMagick |
| 216 |
shell: cmd |
| 217 |
run: | |
| 218 |
call "C:\Program Files\Microsoft Visual Studio\18\Enterprise\Common7\Tools\VsDevCmd.bat" |
| 219 |
msbuild /m /t:Rebuild /p:Configuration=Release,Platform=x64 |
| 220 |
|
| 221 |
build_msys2: |
| 222 |
name: MSYS2 Q16-${{matrix.toolchain}} |
| 223 |
runs-on: windows-2025 |
| 224 |
|
| 225 |
strategy: |
| 226 |
matrix: |
| 227 |
include: [ |
| 228 |
{ msystem: clang64, toolchain: clang-x86_64 }, |
| 229 |
{ msystem: mingw64, toolchain: x86_64 }, |
| 230 |
{ msystem: ucrt64, toolchain: ucrt-x86_64 }, |
| 231 |
] |
| 232 |
fail-fast: false |
| 233 |
|
| 234 |
steps: |
| 235 |
- name: Prepare git |
| 236 |
run: git config --global core.autocrlf false |
| 237 |
|
| 238 |
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 |
| 239 |
with: |
| 240 |
persist-credentials: false |
| 241 |
|
| 242 |
- uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 |
| 243 |
with: |
| 244 |
install: mingw-w64-${{ matrix.toolchain }}-toolchain base-devel binutils |
| 245 |
update: true |
| 246 |
cache: false |
| 247 |
|
| 248 |
- name: Build ImageMagick |
| 249 |
run: cd .github/build/msys2 && makepkg-mingw --noconfirm --syncdeps |
| 250 |
env: |
| 251 |
MINGW_ARCH: ${{ matrix.msystem }} |
| 252 |
PKGEXT: ".pkg.tar.xz" |
| 253 |
shell: msys2 {0} |