1on: 2 workflow_dispatch: 3 schedule: 4 - cron: 0 6 * * * 5 6name: daily 7jobs: 8 build_linux: 9 name: 'Linux Q${{matrix.quantum}}-x64 hdri=${{matrix.hdri}} (${{matrix.modules}})' 10 container: 11 image: ubuntu:bionic 12 runs-on: ubuntu-latest 13 14 strategy: 15 fail-fast: false 16 matrix: 17 quantum: [ 8, 16, 32, 64 ] 18 hdri: [ yes, no ] 19 modules: [ 'with-modules', 'without-modules' ] 20 exclude: 21 - quantum: 8 22 hdri: yes 23 - quantum: 32 24 hdri: no 25 - quantum: 64 26 hdri: no 27 28 steps: 29 - name: Install dependencies 30 run: | 31 set -e 32 apt update 33 apt-get install -y autoconf pkg-config gcc libfontconfig1-dev libfreetype6-dev libltdl-dev 34 35 - name: Clone msttcorefonts 36 uses: actions/checkout@v2 37 with: 38 repository: ImageMagick/msttcorefonts 39 ref: refs/heads/main 40 fetch-depth: 1 41 42 - name: Install msttcorefonts 43 run: | 44 set -e 45 ./install.sh 46 47 - uses: actions/checkout@v2 48 with: 49 fetch-depth: 1 50 51 - name: Configure ImageMagick 52 run: | 53 export CFLAGS="-Wno-deprecated-declarations" 54 ./configure --with-quantum-depth=${{matrix.quantum}} --enable-hdri=${{matrix.hdri}} --${{matrix.modules}} 55 56 - name: Build ImageMagick 57 run: | 58 make 59 60 - name: Test ImageMagick 61 run: | 62 make check || exit_code=$? 63 if [ "$exit_code" != "0" ] ; then cat ./test-suite.log ; fi 64 exit $exit_code 65 66 build_windows: 67 name: 'Windows Q${{matrix.quantum}}-${{matrix.platform}} hdri=${{matrix.hdri}} (${{matrix.buildType}})' 68 runs-on: windows-latest 69 70 strategy: 71 fail-fast: false 72 matrix: 73 quantum: [ 8, 16, 32, 64 ] 74 hdri: [ yes, no ] 75 buildType: [ dmt, smtd ] 76 platform: [ x64, Win32 ] 77 exclude: 78 - quantum: 8 79 hdri: yes 80 - quantum: 32 81 hdri: no 82 - quantum: 64 83 hdri: no 84 85 steps: 86 - name: Clone ImageMagick-Windows 87 uses: actions/checkout@v2 88 with: 89 repository: ImageMagick/ImageMagick-Windows 90 path: ImageMagick-Windows 91 ref: refs/heads/main 92 fetch-depth: 1 93 94 - name: Clone repositories 95 shell: cmd 96 run: | 97 cd %GITHUB_WORKSPACE%\ImageMagick-Windows 98 CloneRepositories.cmd https://github.com/ImageMagick shallow 99 100 - name: Build configure 101 shell: cmd 102 run: | 103 call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" 104 cd %GITHUB_WORKSPACE%\ImageMagick-Windows\VisualMagick\configure 105 devenv /upgrade configure.vcxproj 106 msbuild configure.sln /m /t:Rebuild /p:Configuration=Release,Platform=Win32 107 108 - name: Configure ImageMagick 109 shell: cmd 110 run: | 111 cd %GITHUB_WORKSPACE%\ImageMagick-Windows\VisualMagick\configure 112 configure.exe /noWizard /VS2019 /${{matrix.platform}} /${{matrix.buildType}} 113 114 - name: Build ImageMagick 115 shell: cmd 116 run: | 117 call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" 118 cd %GITHUB_WORKSPACE%\ImageMagick-Windows\VisualMagick 119 dir /B *.sln > solution 120 set /p solution=<solution 121 msbuild %solution% /m /t:Rebuild /p:Configuration=Release,Platform=${{matrix.platform}} 122