daily #1225
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
workflow_dispatch: | |
schedule: | |
- cron: 0 6 * * * | |
name: daily | |
jobs: | |
change_log: | |
name: 'Create ChangeLog.md' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- 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@v3 | |
with: | |
name: ChangeLog | |
path: artifacts | |
build_linux: | |
name: 'Linux Q${{matrix.quantum}}-x64 hdri=${{matrix.hdri}} (${{matrix.modules}})' | |
container: | |
image: ubuntu:bionic | |
runs-on: ubuntu-latest | |
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 | |
apt update | |
apt-get install -y autoconf pkg-config gcc libfontconfig1-dev libfreetype6-dev libltdl-dev | |
- name: Clone msttcorefonts | |
uses: actions/checkout@v3 | |
with: | |
repository: ImageMagick/msttcorefonts | |
ref: refs/heads/main | |
- name: Install msttcorefonts | |
run: | | |
set -e | |
./install.sh | |
- uses: actions/checkout@v3 | |
- 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 Q${{matrix.quantum}}-${{matrix.platform}} hdri=${{matrix.hdri}} (${{matrix.buildType}})' | |
needs: | |
- change_log | |
runs-on: windows-2022 | |
strategy: | |
fail-fast: false | |
matrix: | |
quantum: [ 8, 16, 32, 64 ] | |
hdri: [ yes, no ] | |
buildType: [ dmt, smtd ] | |
platform: [ x64, x86 ] | |
exclude: | |
- quantum: 8 | |
hdri: yes | |
- quantum: 32 | |
hdri: no | |
- quantum: 64 | |
hdri: no | |
steps: | |
- name: Clone ImageMagick-Windows6 | |
uses: actions/checkout@v3 | |
with: | |
repository: ImageMagick/ImageMagick-Windows6 | |
path: ImageMagick-Windows6 | |
ref: refs/heads/main | |
- name: Clone repositories | |
shell: cmd | |
run: | | |
cd ImageMagick-Windows6 | |
CloneRepositories.cmd https://github.com/ImageMagick shallow | |
- name: Download ChangeLog.md | |
uses: actions/download-artifact@v3 | |
with: | |
name: ChangeLog | |
path: ImageMagick-Windows6\ImageMagick | |
- name: Build configure | |
shell: cmd | |
run: | | |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" | |
cd ImageMagick-Windows6\VisualMagick\configure | |
msbuild configure.2022.sln /m /t:Rebuild /p:Configuration=Release,Platform=x64 | |
- name: Configure ImageMagick | |
shell: cmd | |
run: | | |
cd ImageMagick-Windows6\VisualMagick\configure | |
configure.exe /noWizard /VS2022 /includeOptional /incompatibleLicense /deprecated /${{matrix.platform}} /${{matrix.buildType}} | |
- name: Build ImageMagick | |
shell: cmd | |
run: | | |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" | |
cd ImageMagick-Windows6\VisualMagick | |
dir /B *.sln > solution | |
set /p solution=<solution | |
msbuild %solution% /m /t:Rebuild /p:Configuration=Release,Platform=${{matrix.platform}} |