Skip to content

Commit 5754efa

Browse files
committed
Added workflows to build and test ImageMagick.
1 parent 2fdb73d commit 5754efa

2 files changed

Lines changed: 151 additions & 0 deletions

File tree

.github/workflows/daily.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
on:
2+
schedule:
3+
- cron: 0 6 * * *
4+
5+
jobs:
6+
build_linux:
7+
name: 'Linux Q${{matrix.quantum}} hdri: ${{matrix.hdri}}'
8+
container:
9+
image: ubuntu:bionic
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
quantum: [ 8, 16, 32, 64 ]
16+
hdri: [ yes, no ]
17+
exclude:
18+
- quantum: 8
19+
hdri: yes
20+
- quantum: 32
21+
hdri: no
22+
- quantum: 64
23+
hdri: no
24+
25+
steps:
26+
- uses: actions/checkout@master
27+
with:
28+
fetch-depth: 1
29+
30+
- name: Install dependencies
31+
run: |
32+
apt update
33+
sh -c "echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections"
34+
apt-get install -y autoconf pkg-config gcc msttcorefonts libfontconfig1-dev libfreetype6-dev
35+
36+
- name: Configure ImageMagick
37+
run: |
38+
export CFLAGS="-Wno-deprecated-declarations"
39+
./configure --with-quantum-depth=${{matrix.quantum}} --enable-hdri=${{matrix.hdri}}
40+
41+
- name: Build ImageMagick
42+
run: |
43+
make
44+
45+
- name: Test ImageMagick
46+
run: |
47+
make check || exit_code=$?
48+
if [ $exit_code -ne 0 ] ; then cat ./test-suite.log ; fi
49+
exit $exit_code

.github/workflows/master.yml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
pull_request:
6+
branches:
7+
- master
8+
9+
jobs:
10+
build_linux:
11+
name: Build Linux
12+
container:
13+
image: ubuntu:bionic
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
fail-fast: true
18+
matrix:
19+
compiler: [ gcc, clang ]
20+
21+
steps:
22+
- uses: actions/checkout@master
23+
with:
24+
fetch-depth: 1
25+
26+
- name: Install dependencies
27+
run: |
28+
set -e
29+
apt-get update -y
30+
apt-get install -y autoconf pkg-config ${{matrix.compiler}}
31+
32+
- name: Configure ImageMagick
33+
run: |
34+
export CC=${{matrix.compiler}}
35+
export CFLAGS="-Wno-deprecated-declarations"
36+
./configure --with-quantum-depth=16 --enable-hdri=no --without-perl --prefix=/usr
37+
38+
- name: Build ImageMagick
39+
run: |
40+
set -e
41+
make
42+
make install
43+
44+
build_macos:
45+
name: Build MacOS
46+
runs-on: macos-latest
47+
48+
steps:
49+
- uses: actions/checkout@master
50+
with:
51+
fetch-depth: 1
52+
53+
- name: Install dependencies
54+
run: |
55+
set -e
56+
export HOMEBREW_NO_AUTO_UPDATE=1
57+
brew install autoconf libtool pkg-config libxml2
58+
59+
- name: Configure ImageMagick
60+
run: |
61+
export CFLAGS="-Wno-deprecated-declarations"
62+
export PKG_CONFIG_PATH="/usr/local/opt/libxml2/lib/pkgconfig"
63+
./configure --with-quantum-depth=16 --enable-hdri=no --without-perl
64+
65+
- name: Build ImageMagick
66+
run: |
67+
set -e
68+
make install
69+
70+
build_windows:
71+
name: Build Windows
72+
runs-on: windows-latest
73+
74+
steps:
75+
- uses: actions/checkout@master
76+
with:
77+
repository: ImageMagick/ImageMagick-Windows
78+
ref: refs/heads/master
79+
fetchDepth: 1
80+
81+
- name: Clone repositories
82+
run: |
83+
cd %RUNNER_WORKSPACE%\ImageMagick-Windows
84+
CloneRepositories.cmd https://github.com/ImageMagick shallow
85+
86+
- name: Build configure
87+
run: |
88+
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat"
89+
cd %RUNNER_WORKSPACE%\ImageMagick-Windows\VisualMagick\configure
90+
devenv /upgrade configure.vcxproj
91+
msbuild configure.sln /m /t:Rebuild /p:Configuration=Release,Platform=Win32
92+
93+
- name: Configure ImageMagick
94+
run: |
95+
cd %RUNNER_WORKSPACE%\ImageMagick-Windows\VisualMagick\configure
96+
configure.exe /noWizard /VS2019 /x64 /smtd
97+
98+
- name: Build ImageMagick
99+
run: |
100+
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat"
101+
cd %RUNNER_WORKSPACE%\ImageMagick-Windows\VisualMagick
102+
msbuild VisualStaticMTD.sln /m /t:Rebuild /p:Configuration=Release,Platform=x64

0 commit comments

Comments
 (0)