mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-05 12:23:18 +03:00
Add accelerated test builds
This commit is contained in:
parent
4d10b3c0ab
commit
a410dcbe9a
13
.github/workflows/test.yml
vendored
13
.github/workflows/test.yml
vendored
|
@ -52,15 +52,19 @@ jobs:
|
||||||
include:
|
include:
|
||||||
- { python-version: "3.11", PYTHONOPTIMIZE: 1, REVERSE: "--reverse" }
|
- { python-version: "3.11", PYTHONOPTIMIZE: 1, REVERSE: "--reverse" }
|
||||||
- { python-version: "3.10", PYTHONOPTIMIZE: 2 }
|
- { python-version: "3.10", PYTHONOPTIMIZE: 2 }
|
||||||
|
# SIMD-accelerated builds for x86
|
||||||
|
- { os: "ubuntu-latest", python-version: "3.9", acceleration: "sse4"}
|
||||||
|
- { os: "ubuntu-latest", python-version: "3.12", acceleration: "avx2"}
|
||||||
# Free-threaded
|
# Free-threaded
|
||||||
- { os: "ubuntu-latest", python-version: "3.13-dev", disable-gil: true }
|
- { os: "ubuntu-latest", python-version: "3.13-dev", disable-gil: true }
|
||||||
# M1 only available for 3.10+
|
# M1 only available for 3.10+
|
||||||
- { os: "macos-13", python-version: "3.9" }
|
- { os: "macos-13", python-version: "3.9" }
|
||||||
|
- { os: "macos-13", python-version: "3.9", acceleration: "avx2"}
|
||||||
exclude:
|
exclude:
|
||||||
- { os: "macos-14", python-version: "3.9" }
|
- { os: "macos-14", python-version: "3.9" }
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
name: ${{ matrix.os }} Python ${{ matrix.python-version }} ${{ matrix.disable-gil && 'free-threaded' || '' }}
|
name: ${{ matrix.os }} Python ${{ matrix.python-version }} ${{ matrix.acceleration }} ${{ matrix.disable-gil && 'free-threaded' || '' }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -108,7 +112,7 @@ jobs:
|
||||||
GHA_LIBIMAGEQUANT_CACHE_HIT: ${{ steps.cache-libimagequant.outputs.cache-hit }}
|
GHA_LIBIMAGEQUANT_CACHE_HIT: ${{ steps.cache-libimagequant.outputs.cache-hit }}
|
||||||
|
|
||||||
- name: Install macOS dependencies
|
- name: Install macOS dependencies
|
||||||
if: startsWith(matrix.os, 'macOS')
|
if: startsWith(matrix.os, 'macos')
|
||||||
run: |
|
run: |
|
||||||
.github/workflows/macos-install.sh
|
.github/workflows/macos-install.sh
|
||||||
env:
|
env:
|
||||||
|
@ -118,6 +122,11 @@ jobs:
|
||||||
if: "matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'"
|
if: "matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'"
|
||||||
run: echo "::add-matcher::.github/problem-matchers/gcc.json"
|
run: echo "::add-matcher::.github/problem-matchers/gcc.json"
|
||||||
|
|
||||||
|
- name: Set compiler options for optimization
|
||||||
|
if: ${{ matrix.acceleration }}
|
||||||
|
run: |
|
||||||
|
echo "CC=cc -m${{ matrix.acceleration }}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
.ci/build.sh
|
.ci/build.sh
|
||||||
|
|
Loading…
Reference in New Issue
Block a user