WebPDecodeARGB()'s return should be WebPFree()ed. (#836) #213
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
name: CI Windows Mingw | |
on: | |
push: | |
branches: [master, GD-*] | |
pull_request: | |
branches: [master, GD-*] | |
workflow_dispatch: | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: RELWITHDEBINFO | |
jobs: | |
win-build: | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- { icon: 'β¬', sys: MINGW32 } | |
- { icon: 'π¦', sys: MINGW64 } | |
- { icon: 'π¨', sys: UCRT64 } # Experimental! | |
- { icon: 'π§', sys: CLANG64 } # Experimental! | |
name: π§${{ matrix.icon }}-${{ matrix.sys }} | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- name: 'βοΈ git config' | |
run: git config --global core.autocrlf input | |
shell: bash | |
- name: 'π§° Checkout' | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: '${{ matrix.icon }} Setup MSYS2' | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: ${{ matrix.sys }} | |
update: true | |
install: > | |
git | |
base-devel | |
tree | |
pacboy: > | |
toolchain:p | |
libpng:p | |
libjpeg-turbo:p | |
freetype:p | |
libtiff:p | |
libwebp:p | |
libheif:p | |
libraqm:p | |
libavif:p | |
xpm-nox:p | |
cmake:p | |
ninja:p | |
- name: 'π§ Cmake Configure' | |
run: | | |
cmake -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DENABLE_PNG=1 -DENABLE_FREETYPE=1 -DENABLE_XPM=1 -DENABLE_JPEG=1 -DENABLE_WEBP=1 -DENABLE_TIFF=1 -DENABLE_GD_FORMATS=1 -DENABLE_HEIF=1 -DENABLE_RAQM=1 -DENABLE_ICONV=1 -DENABLE_CPP=1 -DBUILD_TEST=1 -B. | |
- name: Build | |
run: cmake --build . | |
- name: Run tests | |
working-directory: ${{github.workspace}} | |
run: | | |
mkdir tmp | |
export TMP=${{github.workspace}}\\tmp | |
export CTEST_OUTPUT_ON_FAILURE=1 | |
ctest |