summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pierre.php@gmail.com>2021-09-01 08:34:50 +0700
committerPierre Joye <pierre.php@gmail.com>2021-09-01 08:34:50 +0700
commit6c494b5da30c54de2e115a96dcaaf5c6792ad88b (patch)
treec563d1ff4a7e57a9ec63df26977edcde5f316ccc
parent3ec453691e22592077a9c7157306d90bda013430 (diff)
downloadlibgd-6c494b5da30c54de2e115a96dcaaf5c6792ad88b.tar.gz
rename to _mingw
-rw-r--r--.github/workflows/ci_windows_mingw.yml79
1 files changed, 79 insertions, 0 deletions
diff --git a/.github/workflows/ci_windows_mingw.yml b/.github/workflows/ci_windows_mingw.yml
new file mode 100644
index 0000000..23f92e7
--- /dev/null
+++ b/.github/workflows/ci_windows_mingw.yml
@@ -0,0 +1,79 @@
+name: CI Windows Mingw
+
+on:
+ push:
+ branches:
+ - 'features/mingw-ci'
+ pull_request:
+
+ 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, env: i686 }
+ - { icon: '🟦', sys: mingw64, env: x86_64 }
+ - { icon: '🟨', sys: ucrt64, env: ucrt-x86_64 } # Experimental!
+# - { icon: '🟧', sys: clang64, env: clang-x86_64 } # Experimental!
+ name: 🚧${{ matrix.icon }}-${{ matrix.sys }}
+ defaults:
+ run:
+ shell: msys2 {0}
+ env:
+ MINGW_ARCH: ${{ matrix.sys }}
+ 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
+ mingw-w64-${{ matrix.env }}-toolchain
+ mingw-w64-${{ matrix.env }}-libpng
+ mingw-w64-${{ matrix.env }}-libjpeg-turbo
+ mingw-w64-${{ matrix.env }}-freetype
+ mingw-w64-${{ matrix.env }}-libtiff
+ mingw-w64-${{ matrix.env }}-libwebp
+ mingw-w64-${{ matrix.env }}-libheif
+ mingw-w64-${{ matrix.env }}-libraqm
+ mingw-w64-${{ matrix.env }}-libimagequant
+ mingw-w64-${{ matrix.env }}-libavif
+ mingw-w64-${{ matrix.env }}-cmake
+
+ - name: '🚧 Cmake Configure'
+ run: |
+ MSYSTEM=MINGW64 cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DENABLE_PNG=1 -DENABLE_FREETYPE=1 -DENABLE_XPM=0 -DENABLE_JPEG=1 -DENABLE_WEBP=0 -DENABLE_TIFF=1 -DENABLE_XPM=0 -DENABLE_GD_FORMATS=1 -DENABLE_HEIF=1 -DENABLE_RAQM=1 -DBUILD_TEST=1 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -B.
+
+ - name: Build
+ run: cmake --build . --config ${{env.BUILD_TYPE}} --parallel 4
+
+ - name: Run tests
+ working-directory: ${{github.workspace}}
+ run: |
+ mkdir tmp
+ export TMP=${{github.workspace}}\\tmp
+ export CTEST_OUTPUT_ON_FAILURE=1
+ ctest -C ${{env.BUILD_TYPE}}