Skip to content

Commit

Permalink
Skip macos arm and python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Matlock committed Mar 14, 2024
1 parent de90b4e commit 827d668
Showing 1 changed file with 56 additions and 50 deletions.
106 changes: 56 additions & 50 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,74 +13,44 @@ on:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# build-linux:
# # The type of runner that the job will run on
# strategy:
# matrix:
# python-minor-version: ["9", "10", "11", "12"]
# fail-fast: true
# runs-on: ubuntu-latest
# # Steps represent a sequence of tasks that will be executed as part of the job
# steps:
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# - uses: actions/checkout@v3
# - name: Set up Python 3.${{ matrix.python-minor-version }}
# uses: actions/setup-python@v4
# with:
# python-version: 3.${{ matrix.python-minor-version }}
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
# with:
# platforms: all
# - name: Install cibuildwheel
# run: python -m pip install cibuildwheel==2.16.5
# - name: Build wheels
# run: python -m cibuildwheel --output-dir wheelhouse
# env:
# CIBW_BUILD: 'cp3${{ matrix.python-minor-version }}-*'
# # rust doesn't seem to be available for musl linux on i686
# CIBW_SKIP: '*-musllinux_i686 *_ppc64le *_s390x'
# # # we build for "alt_arch_name" if it exists, else 'auto'
# CIBW_ARCHS: 'all'
# CIBW_ENVIRONMENT: 'PATH="$HOME/.cargo/bin:$PATH" CARGO_TERM_COLOR="always"'
# # CIBW_ENVIRONMENT_WINDOWS: 'PATH="$UserProfile\.cargo\bin;$PATH"'
# # CIBW_BEFORE_BUILD: rustup show
# CIBW_BEFORE_BUILD_LINUX: >
# curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=stable --profile=minimal -y &&
# rustup show
# # CIBW_TEST_SKIP: '*-macosx_arm64 *-macosx_universal2:arm64'
# # CIBW_BUILD_VERBOSITY: 1
# - name: Archive production artifacts
# uses: actions/upload-artifact@v4
# with:
# name: wheels-linux-3.${{ matrix.python-minor-version }}
# compression-level: 0
# path: wheelhouse/*.whl
build-mac:
build-linux:
# The type of runner that the job will run on
strategy:
matrix:
python-minor-version: ["10", "11", "12"]
platform: ["macos", "linux"]
os: [ubuntu-latest, macos-13, macos-14]
python-minor-version: ["9", "10", "11", "12"]
fail-fast: true
runs-on: macos-14
runs-on: ${{ matrix.os }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Skip arm and python 3.9
run: |
if [[ "${{ matrix.os }}" == "macos-14" && "${{ matrix.python-minor-version }}" == "9" ]]; then
exit 0
fi
- uses: actions/checkout@v3
- name: Set up Python 3.${{ matrix.python-minor-version }}
uses: actions/setup-python@v4
with:
python-version: 3.${{ matrix.python-minor-version }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: all
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.16.5
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_PLATFORM: ${{ matrix.platform }}
CIBW_BUILD: 'cp3${{ matrix.python-minor-version }}-*'
CIBW_ARCHS: ${{ matrix.platform == 'macos' && 'arm64' || 'aarch64' }}
# rust doesn't seem to be available for musl linux on i686
CIBW_SKIP: '*-musllinux_i686 *_ppc64le *_s390x'
# # we build for "alt_arch_name" if it exists, else 'auto'
CIBW_ARCHS: 'auto'
CIBW_ENVIRONMENT: 'PATH="$HOME/.cargo/bin:$PATH" CARGO_TERM_COLOR="always"'
# CIBW_ENVIRONMENT_WINDOWS: 'PATH="$UserProfile\.cargo\bin;$PATH"'
# CIBW_BEFORE_BUILD: rustup show
CIBW_BEFORE_BUILD_LINUX: >
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=stable --profile=minimal -y &&
rustup show
Expand All @@ -89,6 +59,42 @@ jobs:
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.platform }}-3.${{ matrix.python-minor-version }}
name: wheels-${{ matrix.os }}-3.${{ matrix.python-minor-version }}
compression-level: 0
path: wheelhouse/*.whl
# build-mac:
# # The type of runner that the job will run on
# strategy:
# matrix:
# python-minor-version: ["10", "11", "12"]
# platform: ["macos", "linux"]
# fail-fast: true
# runs-on: macos-14
# # Steps represent a sequence of tasks that will be executed as part of the job
# steps:
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# - uses: actions/checkout@v3
# - name: Set up Python 3.${{ matrix.python-minor-version }}
# uses: actions/setup-python@v4
# with:
# python-version: 3.${{ matrix.python-minor-version }}
# - name: Install cibuildwheel
# run: python -m pip install cibuildwheel==2.16.5
# - name: Build wheels
# run: python -m cibuildwheel --output-dir wheelhouse
# env:
# CIBW_PLATFORM: ${{ matrix.platform }}
# CIBW_BUILD: 'cp3${{ matrix.python-minor-version }}-*'
# CIBW_ARCHS: ${{ matrix.platform == 'macos' && 'arm64' || 'aarch64' }}
# CIBW_ENVIRONMENT: 'PATH="$HOME/.cargo/bin:$PATH" CARGO_TERM_COLOR="always"'
# CIBW_BEFORE_BUILD_LINUX: >
# curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=stable --profile=minimal -y &&
# rustup show
# # CIBW_TEST_SKIP: '*-macosx_arm64 *-macosx_universal2:arm64'
# # CIBW_BUILD_VERBOSITY: 1
# - name: Archive production artifacts
# uses: actions/upload-artifact@v4
# with:
# name: wheels-${{ matrix.platform }}-3.${{ matrix.python-minor-version }}
# compression-level: 0
# path: wheelhouse/*.whl

0 comments on commit 827d668

Please # to comment.