GHA: test msys2 clang and ucrt systems

This commit is contained in:
nulano 2023-01-13 03:31:17 +01:00
parent 837d23f273
commit 05f9e20c53
No known key found for this signature in database
GPG Key ID: B650CDF63B705766

View File

@ -1,4 +1,4 @@
name: Test MinGW name: Test MSYS2
on: on:
push: push:
@ -21,16 +21,26 @@ concurrency:
jobs: jobs:
build: build:
runs-on: windows-latest runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- msystem: "UCRT64"
package: "mingw-w64-ucrt-x86_64"
- msystem: "CLANG64"
package: "mingw-w64-clang-i686"
- msystem: "MINGW64"
package: "mingw-w64-x86_64"
defaults: defaults:
run: run:
shell: bash.exe --login -eo pipefail "{0}" shell: bash.exe --login -eo pipefail "{0}"
env: env:
MSYSTEM: MINGW64 MSYSTEM: ${{ matrix.msystem }}
CHERE_INVOKING: 1 CHERE_INVOKING: 1
timeout-minutes: 30 timeout-minutes: 30
name: "MinGW" name: MSYS2 ${{ matrix.msystem }}
steps: steps:
- name: Checkout Pillow - name: Checkout Pillow
@ -43,22 +53,27 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
pacman -S --noconfirm \ pacman -S --noconfirm \
mingw-w64-x86_64-freetype \ ${{ matrix.package }}-freetype \
mingw-w64-x86_64-gcc \ ${{ matrix.package }}-gcc \
mingw-w64-x86_64-ghostscript \ ${{ matrix.package }}-ghostscript \
mingw-w64-x86_64-lcms2 \ ${{ matrix.package }}-lcms2 \
mingw-w64-x86_64-libimagequant \ ${{ matrix.package }}-libimagequant \
mingw-w64-x86_64-libjpeg-turbo \ ${{ matrix.package }}-libjpeg-turbo \
mingw-w64-x86_64-libraqm \ ${{ matrix.package }}-libraqm \
mingw-w64-x86_64-libtiff \ ${{ matrix.package }}-libtiff \
mingw-w64-x86_64-libwebp \ ${{ matrix.package }}-libwebp \
mingw-w64-x86_64-openjpeg2 \ ${{ matrix.package }}-openjpeg2 \
mingw-w64-x86_64-python3-cffi \ ${{ matrix.package }}-python3-cffi \
mingw-w64-x86_64-python3-numpy \ ${{ matrix.package }}-python3-numpy \
mingw-w64-x86_64-python3-olefile \ ${{ matrix.package }}-python3-olefile \
mingw-w64-x86_64-python3-pip \ ${{ matrix.package }}-python3-pip \
mingw-w64-x86_64-python3-setuptools \ ${{ matrix.package }}-python3-setuptools \
mingw-w64-x86_64-python-pyqt6 subversion
if [[ ${{ matrix.package }} =~ "x86_64" ]]; then
pacman -S --noconfirm \
${{ matrix.package }}-python-pyqt6
fi
python3 -m pip install pyroma pytest pytest-cov pytest-timeout python3 -m pip install pyroma pytest pytest-cov pytest-timeout