-
Notifications
You must be signed in to change notification settings - Fork 97
159 lines (136 loc) · 4.41 KB
/
Copy pathdaily.yml
File metadata and controls
159 lines (136 loc) · 4.41 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
on:
workflow_dispatch:
schedule:
- cron: 0 6 * * *
push:
branches:
- main
paths:
- '.github/workflows/daily.yml'
pull_request:
branches:
- main
paths:
- '.github/workflows/daily.yml'
permissions:
contents: read
name: Daily
jobs:
change_log:
name: Create ChangeLog.md
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- name: Install dependencies
run: npm install -g auto-changelog
- name: Create ChangeLog.md
run: |
export NEXT_VERSION=$(grep -oP "PACKAGE_VERSION='\K[0-9\.-]*" configure)
git tag $NEXT_VERSION
auto-changelog --sort-commits date
mkdir artifacts
mv ChangeLog.md artifacts/ChangeLog.md
- name: Upload ChangeLog.md
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a #v7.0.1
with:
name: ChangeLog
path: artifacts
build_linux:
name: Linux Q${{matrix.quantum}}-x64 hdri=${{matrix.hdri}} (${{matrix.modules}})
container:
image: ubuntu:20.04
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
quantum: [ 8, 16 ]
hdri: [ yes, no ]
modules: [ 'with-modules', 'without-modules' ]
exclude:
- quantum: 8
hdri: yes
steps:
- name: Install dependencies
run: |
set -e
export DEBIAN_FRONTEND=noninteractive
apt update
apt-get install -y autoconf gcc g++ libfontconfig1-dev libfreetype6-dev libltdl-dev make pkg-config
- name: Clone msttcorefonts
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7.0.1
with:
repository: ImageMagick/msttcorefonts
ref: refs/heads/main
persist-credentials: false
- name: Install msttcorefonts
run: |
set -e
./install.sh
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7.0.1
with:
persist-credentials: false
- name: Configure ImageMagick
run: |
export CFLAGS="-Wno-deprecated-declarations"
./configure --with-quantum-depth=${{matrix.quantum}} --enable-hdri=${{matrix.hdri}} --${{matrix.modules}}
- name: Build ImageMagick
run: |
make
- name: Test ImageMagick
run: |
make check || exit_code=$?
if [ "$exit_code" != "0" ] ; then cat ./test-suite.log ; fi
exit $exit_code
build_windows:
name: Windows ${{matrix.quantum}}${{matrix.hdri_flag}}-${{matrix.architecture}} (${{matrix.buildType}})
needs:
- change_log
runs-on: windows-2025-vs2026
strategy:
fail-fast: false
matrix:
architecture: [ x64, x86 ]
buildType: [ dynamic, static ]
quantum: [ Q8, Q16, Q32 ]
hdri: [ hdri, noHdri ]
exclude:
- quantum: Q8
hdri: hdri
- quantum: Q32
hdri: noHdri
include:
- hdri: hdri
hdri_flag: -HDRI
steps:
- name: Clone ImageMagick
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7.0.1
with:
path: ImageMagick
persist-credentials: false
- name: Download configure
shell: cmd
run: |
ImageMagick\.github\build\windows\download-configure.cmd
- name: Download dependencies
shell: cmd
run: |
ImageMagick\.github\build\windows\download-dependencies.cmd windows-${{matrix.architecture}}-${{matrix.buildType}}-openMP.zip
- name: Download ChangeLog.md
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c #v8.0.1
with:
name: ChangeLog
path: ImageMagick-Windows\ImageMagick
- name: Configure ImageMagick
shell: cmd
working-directory: Configure
run: |
Configure.Release.x64.exe /noWizard /VS2026 /deprecated /${{matrix.architecture}} /${{matrix.buildType}} /${{matrix.quantum}} /${{matrix.hdri}}
- name: Build ImageMagick
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\18\Enterprise\Common7\Tools\VsDevCmd.bat"
msbuild /m /t:Rebuild /p:Configuration=Release,Platform=${{matrix.architecture}}