Skip to content

Commit

Permalink
Updated pip-install actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rory Barnes committed Feb 7, 2024
1 parent f1c247f commit b8ea614
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,12 @@ on:

jobs:
tests:
name: 'Compile examples on py${{ matrix.python-version }}'
name: '${{ matrix.python-version }}'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- python-version: '3.6'
- python-version: '3.7'
- python-version: '3.8'
- python-version: '3.9'
- python-version: '3.10'
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v4
Expand Down
17 changes: 7 additions & 10 deletions .github/workflows/pip-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,18 @@ jobs:
run: |
python -m pip install cibuildwheel==2.12.1
- name: Check if allowed operating system (Linux/Mac)
if: runner.os != 'Linux' || runner.os != 'macOS'
run: |
echo "Cannot build on this operating system."
exit 1
- name: Build wheel
run: |
if [[ "$RUNNER_OS" == "Linux" ]]; then
CIBW_SKIP='*-manylinux_i686' CIBW_MANYLINUX_X86_64_IMAGE=manylinux2014 python -m cibuildwheel --output-dir wheelhouse
else
if [ "$RUNNER_OS" == "Linux" || "$RUNNER_OS" == "macOS"]; then
python -m cibuildwheel --output-dir wheelhouse
fi
else
echo "$RUNNER_OS not supported"
exit 1
fi
env:
CIBW_BUILD: 'cp3?-*'
CIBW_SKIP: '*-manylinux_i686'
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014

- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit b8ea614

Please sign in to comment.