Skip to content

Commit

Permalink
chore(ci): cleanup wheel gha matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
fdintino committed Jul 5, 2024
1 parent 9d7e5b0 commit 3686830
Showing 1 changed file with 13 additions and 59 deletions.
72 changes: 13 additions & 59 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ env:

jobs:
build:
name: ${{ matrix.python }} ${{ matrix.os-name }} ${{ matrix.arch == 'x86' && 'x86_64' || matrix.os == 'macos-latest' && 'arm64' || 'aarch64' }}
runs-on: ${{ matrix.os }}
name: ${{ matrix.python }} ${{ matrix.os-name }} ${{ matrix.arch == 'x86' && 'x86_64' || matrix.os-type == 'macos' && 'arm64' || 'aarch64' }}
runs-on: ${{ matrix.os-type == 'ubuntu' && 'ubuntu-latest' || (matrix.os-type == 'macos' && (matrix.arch == 'x86' || matrix.python == '2.7' || matrix.python == '3.7')) && 'macos-13' || 'macos-latest' }}
strategy:
fail-fast: false
matrix:
os-type: [ "ubuntu", "macos" ]
python: [ "2.7", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12" ]
arch: [ "x86", "arm" ]
manylinux-version: [ "2014" ]
mb-ml-libc: [ "manylinux" ]
mb-ml-libc: [ "manylinux", "musllinux" ]
exclude:
- python: "2.7"
os-type: "ubuntu"
Expand All @@ -35,22 +35,16 @@ jobs:
os-type: "ubuntu"
arch: "arm"
- python: "2.7"
os-type: "macos"
arch: "arm"
mb-ml-libc: "musllinux"
- python: "3.7"
os-type: "macos"
arch: "arm"
include:
mb-ml-libc: "musllinux"
- arch: "arm"
mb-ml-libc: "musllinux"
- os-type: "macos"
os: "macos-13"
python: "2.7"
arch: "arm"
os-name: "osx"
mb-ml-libc: "musllinux"
include:
- os-type: "macos"
os: "macos-13"
python: "3.7"
arch: "arm"
os-name: "osx"
os-name: "macOS"
- os-type: "ubuntu"
os: "ubuntu-latest"
python: "2.7"
Expand All @@ -63,59 +57,19 @@ jobs:
arch: "x86"
manylinux-version: "2010"
os-name: "manylinux2010"
- os-type: "macos"
arch: "arm"
os: "macos-latest"
os-name: "osx"
- os-type: "macos"
arch: "x86"
os: "macos-13"
os-name: "osx"
- os-type: "ubuntu"
os: "ubuntu-latest"
manylinux-version: "2014"
os-name: "manylinux2014"
- python: "3.8"
arch: "x86"
mb-ml-libc: "musllinux"
- mb-ml-libc: "musllinux"
os-type: "ubuntu"
os: "ubuntu-latest"
os-name: "musllinux"
manylinux-version: "_1_1"
- python: "3.9"
arch: "x86"
mb-ml-libc: "musllinux"
os-type: "ubuntu"
os: "ubuntu-latest"
os-name: "musllinux"
manylinux-version: "_1_1"
- python: "3.10"
arch: "x86"
mb-ml-libc: "musllinux"
os-type: "ubuntu"
os: "ubuntu-latest"
os-name: "musllinux"
manylinux-version: "_1_1"
- python: "3.11"
arch: "x86"
mb-ml-libc: "musllinux"
os-type: "ubuntu"
os: "ubuntu-latest"
os-name: "musllinux"
manylinux-version: "_1_1"
- python: "3.12"
arch: "x86"
mb-ml-libc: "musllinux"
os-type: "ubuntu"
os: "ubuntu-latest"
os-name: "musllinux"
manylinux-version: "_1_1"
env:
BUILD_COMMIT: HEAD
PLAT: ${{ matrix.arch == 'x86' && 'x86_64' || matrix.os-type == 'macos' && 'arm64' || 'aarch64' }}
PLAT: ${{ matrix.arch == 'x86' && 'x86_64' || (matrix.os-type == 'macos' && 'arm64') || 'aarch64' }}
MB_PYTHON_VERSION: ${{ matrix.python }}
TRAVIS_OS_NAME: ${{ matrix.os-name }}
MB_ML_VER: ${{ matrix.manylinux-version }}
MB_ML_VER: ${{ matrix.mb-ml-libc == 'musllinux' && '_1_1' || matrix.manylinux-version }}
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.arch == 'arm' && '11.0' || '10.10' }}
MB_ML_LIBC: ${{ matrix.mb-ml-libc }}
steps:
Expand Down

0 comments on commit 3686830

Please sign in to comment.