Skip to content

Commit 874bb0a

Browse files
committed
Build zlib on Linux as well
1 parent fd81da7 commit 874bb0a

File tree

2 files changed

+5
-63
lines changed

2 files changed

+5
-63
lines changed

.github/workflows/wheels.yml

Lines changed: 3 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
os: [ "ubuntu-20.04", "macos-latest" ]
20-
python: [ "pypy3.7-7.3.3","pypy3.6-7.3.3", "3.6", "3.7", "3.8", "3.9" ]
20+
python: [ "3.8", "3.9" ]
2121
platform: [ "x86_64", "i686" ]
2222
macos-target: [ "10.10" ]
2323
exclude:
2424
- os: "macos-latest"
2525
platform: "i686"
26-
include:
2726
- os: "macos-latest"
28-
os-name: "osx"
27+
platform: "x86_64"
28+
include:
2929
- os: "ubuntu-20.04"
3030
os-name: "focal"
3131
# Disable whilst not available
@@ -63,67 +63,11 @@ jobs:
6363
# if: failure()
6464
# uses: mxschmitt/action-tmate@v3
6565

66-
build-latest:
67-
name: ${{ matrix.python }} ${{ matrix.os-name }} ${{ matrix.platform }} latest
68-
runs-on: ${{ matrix.os }}
69-
if: "!startsWith(github.ref, 'refs/tags/')"
70-
strategy:
71-
fail-fast: false
72-
matrix:
73-
os: [ "ubuntu-20.04", "macos-latest" ]
74-
python: [ "pypy3.7-7.3.3", "pypy3.6-7.3.3", "3.6", "3.7", "3.8", "3.9" ]
75-
platform: [ "x86_64", "i686" ]
76-
macos-target: [ "10.10" ]
77-
exclude:
78-
- os: "macos-latest"
79-
platform: "i686"
80-
include:
81-
- os: "macos-latest"
82-
os-name: "osx"
83-
- os: "ubuntu-20.04"
84-
os-name: "focal"
85-
# Disable whilst not available
86-
# - os: "macos-11.0"
87-
# os-name: "osx"
88-
# platform: "arm64"
89-
# python: "3.9"
90-
# macos-target: "11.0"
91-
# - os: "macos-11.0"
92-
# os-name: "osx"
93-
# platform: "arm64"
94-
# python: "3.8"
95-
# macos-target: "11.0"
96-
env:
97-
BUILD_COMMIT: master
98-
PLAT: ${{ matrix.platform }}
99-
MB_PYTHON_VERSION: ${{ matrix.python }}
100-
TRAVIS_OS_NAME: ${{ matrix.os-name }}
101-
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos-target }}
102-
steps:
103-
- uses: actions/checkout@v2
104-
with:
105-
submodules: true
106-
- uses: actions/setup-python@v2
107-
with:
108-
python-version: 3.9
109-
- name: Build Wheel
110-
run: .github/workflows/build.sh
111-
- uses: actions/upload-artifact@v2
112-
with:
113-
name: wheels-latest
114-
path: wheelhouse/*.whl
115-
11666
release:
11767
name: Create Release
11868
runs-on: ubuntu-latest
119-
if: "startsWith(github.ref, 'refs/tags/')"
12069
needs: build
12170
steps:
12271
- uses: actions/download-artifact@v2
12372
with:
12473
name: wheels
125-
- name: Upload Release
126-
uses: fnkr/[email protected]
127-
env:
128-
GHR_PATH: .
129-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

config.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,8 @@ function pre_build {
4545
# Runs in the root directory of this repository.
4646
curl -fsSL -o pillow-depends-master.zip https://github.com/python-pillow/pillow-depends/archive/master.zip
4747
untar pillow-depends-master.zip
48-
if [ -n "$IS_MACOS" ]; then
49-
# Update to latest zlib for macOS build
50-
build_new_zlib
51-
fi
48+
49+
build_new_zlib
5250

5351
if [ -n "$IS_MACOS" ]; then
5452
ORIGINAL_BUILD_PREFIX=$BUILD_PREFIX

0 commit comments

Comments
 (0)