on: workflow_dispatch: push: branches: - main paths: - 'ChangeLog' name: release jobs: release_windows_installer: name: 'Windows ${{matrix.quantum}}${{matrix.hdri_flag}}-${{matrix.platform}} (${{matrix.type}})' runs-on: windows-latest strategy: fail-fast: false matrix: platform: [ x64, x86 ] type: [ dll, static ] quantum: [ Q8, Q16 ] hdri: [ HDRI, noHDRI ] exclude: - quantum: Q8 hdri: HDRI include: - platform: x64 bit: 64 platform_alias: x64 - platform: x86 bit: 32 platform_alias: Win32 - type: dll type_flag: dmt - type: static type_flag: smtd - hdri: HDRI hdri_flag: '-HDRI' steps: - uses: actions/checkout@v2 with: repository: ImageMagick/ImageMagick-Windows path: ImageMagick-Windows ref: refs/heads/main fetch-depth: 1 - name: Clone repositories shell: cmd run: | cd %GITHUB_WORKSPACE%\ImageMagick-Windows CloneRepositories.cmd https://github.com/ImageMagick shallow - name: Download FFmpeg shell: cmd run: | powershell Invoke-WebRequest -Uri https://github.com/ImageMagick/ImageMagick-Windows/releases/download/20200615/ffmpeg-4.2.3-win${{matrix.bit}}.exe -OutFile ffmpeg.exe copy /Y ffmpeg.exe %GITHUB_WORKSPACE%\ImageMagick-Windows\VisualMagick\bin - name: Download hp2xx shell: cmd run: | powershell Invoke-WebRequest -Uri https://github.com/ImageMagick/ImageMagick-Windows/releases/download/20200615/hp2xx.exe -OutFile hp2xx.exe copy /Y hp2xx.exe %GITHUB_WORKSPACE%\ImageMagick-Windows\VisualMagick\bin - name: Install Strawberry Perl if: ${{matrix.type == 'dll'}} shell: cmd run: | powershell Invoke-WebRequest -Uri https://github.com/ImageMagick/ImageMagick-Windows/releases/download/20200615/strawberry-perl-5.30.2.1-${{matrix.bit}}bit.msi -OutFile strawberry-perl-5.30.2.1-${{matrix.bit}}bit.msi msiexec /i strawberry-perl-5.30.2.1-${{matrix.bit}}bit.msi /qn INSTALLDIR="C:\Strawberry${{matrix.bit}}" mv "C:\Strawberry" "C:\Strawberry64" - name: Build configure shell: cmd run: | call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" cd %GITHUB_WORKSPACE%\ImageMagick-Windows\VisualMagick\configure devenv /upgrade configure.vcxproj msbuild configure.sln /m /t:Rebuild /p:Configuration=Release,Platform=Win32 - name: Configure ImageMagick shell: cmd run: | cd %GITHUB_WORKSPACE%\ImageMagick-Windows\VisualMagick\configure configure.exe /noWizard /VS2019 /includeOptional /installedSupport /deprecated /${{matrix.hdri}} /${{matrix.quantum}} /${{matrix.platform}} /${{matrix.type_flag}} - name: Build ImageMagick shell: cmd run: | call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" cd %GITHUB_WORKSPACE%\ImageMagick-Windows\VisualMagick set /p solution=