Skip to content

Commit

Permalink
gha(wheels): Use ubuntu-latest and macos-latest
Browse files Browse the repository at this point in the history
  • Loading branch information
fdintino committed Nov 8, 2023
1 parent 2641bd8 commit 2022249
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,75 +13,75 @@ env:

jobs:
build:
name: ${{ matrix.python }} ${{ matrix.os-name }} ${{ matrix.arch == 'x86' && 'x86_64' || matrix.os == 'macos-11' && 'arm64' || 'aarch64' }}
name: ${{ matrix.python }} ${{ matrix.os-name }} ${{ matrix.arch == 'x86' && 'x86_64' || matrix.os == 'macos-latest' && 'arm64' || 'aarch64' }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-20.04", "macos-11" ]
os: [ "ubuntu-latest", "macos-latest" ]
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" ]
exclude:
- python: "2.7"
os: "ubuntu-20.04"
os: "ubuntu-latest"
manylinux-version: "2014"
- python: "3.7"
os: "ubuntu-20.04"
os: "ubuntu-latest"
manylinux-version: "2014"
- python: "2.7"
os: "ubuntu-20.04"
os: "ubuntu-latest"
arch: "arm"
include:
- os: "ubuntu-20.04"
- os: "ubuntu-latest"
python: "2.7"
arch: "x86"
manylinux-version: "2010"
os-name: "manylinux2010"
- os: "ubuntu-20.04"
- os: "ubuntu-latest"
python: "3.7"
arch: "x86"
manylinux-version: "2010"
os-name: "manylinux2010"
- os: "macos-11"
- os: "macos-latest"
os-name: "osx"
- os: "ubuntu-20.04"
- os: "ubuntu-latest"
manylinux-version: "2014"
os-name: "manylinux2014"
- python: "3.8"
arch: "x86"
mb-ml-libc: "musllinux"
os: "ubuntu-20.04"
os: "ubuntu-latest"
os-name: "musllinux"
manylinux-version: "_1_1"
- python: "3.9"
arch: "x86"
mb-ml-libc: "musllinux"
os: "ubuntu-20.04"
os: "ubuntu-latest"
os-name: "musllinux"
manylinux-version: "_1_1"
- python: "3.10"
arch: "x86"
mb-ml-libc: "musllinux"
os: "ubuntu-20.04"
os: "ubuntu-latest"
os-name: "musllinux"
manylinux-version: "_1_1"
- python: "3.11"
arch: "x86"
mb-ml-libc: "musllinux"
os: "ubuntu-20.04"
os: "ubuntu-latest"
os-name: "musllinux"
manylinux-version: "_1_1"
- python: "3.12"
arch: "x86"
mb-ml-libc: "musllinux"
os: "ubuntu-20.04"
os: "ubuntu-latest"
os-name: "musllinux"
manylinux-version: "_1_1"
env:
BUILD_COMMIT: HEAD
PLAT: ${{ matrix.arch == 'x86' && 'x86_64' || matrix.os == 'macos-11' && 'arm64' || 'aarch64' }}
PLAT: ${{ matrix.arch == 'x86' && 'x86_64' || matrix.os == 'macos-latest' && 'arm64' || 'aarch64' }}
MB_PYTHON_VERSION: ${{ matrix.python }}
TRAVIS_OS_NAME: ${{ matrix.os-name }}
MB_ML_VER: ${{ matrix.manylinux-version }}
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
if: ${{ matrix.os == 'ubuntu-20.04' && matrix.arch == 'arm' }}
if: ${{ matrix.os == 'ubuntu-latest' && matrix.arch == 'arm' }}

- name: Setup env_vars
run: |
Expand Down Expand Up @@ -323,15 +323,15 @@ jobs:

success:
needs: [build, windows]
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
name: Build Successful
steps:
- name: Success
run: echo Build Successful

release:
name: Create Release
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: [build, windows]
steps:
Expand Down

0 comments on commit 2022249

Please sign in to comment.