Skip to content

Commit

Permalink
Fix gh-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mducle committed Sep 4, 2024
1 parent d6c14e7 commit 3897fb9
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/build_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,20 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: mamba-org/setup-micromamba@v1
with:
cache-downloads: true
- name: Build wheels
uses: pypa/cibuildwheel@v2
run: |
$MAMBA_EXE create -n cibuildwheel
eval "$($MAMBA_EXE shell activate cibuildwheel)"
python -m pip install cibuildwheel
python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: "cp38-* cp39* cp310-* cp311-* cp312-*"
CIBW_SKIP: "*musllinux* *win32* *i686*"
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64"
CIBW_BUILD_VERBOSITY: 1
- uses: mamba-org/setup-micromamba@v1
with:
cache-downloads: true
- name: Install wheels and run test
run: |
# set -e makes sure the script fails if any command in the loop fails
Expand All @@ -56,9 +60,9 @@ jobs:
with:
name: ${{ matrix.os }}_artifacts.zip
path: wheelhouse/*
#- name: Setup tmate
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3
- name: Setup tmate
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
#- name: Publish wheels to PyPI
# if: ${{ github.event_name == 'release' }}
# env:
Expand Down

0 comments on commit 3897fb9

Please sign in to comment.