|
| 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