Skip to content

Commit

Permalink
Still working on macos wheels...
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitri-justeau committed Oct 1, 2024
1 parent b848a8d commit cf9c199
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: true
fail-fast: false
matrix:
os: [macos-13, macos-12]
platform: [arm64, x86_x64]
Expand Down Expand Up @@ -59,8 +59,12 @@ jobs:
git submodule update --init --recursive
- name: Build
run: |
sh build.sh
sh build.sh nowheel
pip install pychoco -f dist/
- name: Build wheels
uses: pypa/[email protected]
with:
output-dir: dist
- name: Test
run: |
pip install pytest
Expand All @@ -77,7 +81,7 @@ jobs:
upload-pypi-macos:
needs: build-macos
runs-on: ubuntu-20.04
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
#if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
strategy:
matrix:
os: [macos-13, macos-12]
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Ubuntu

on:
push:
branches: [ "master", "dev_actions" ]
branches: ["no"]
# branches: [ "master", "dev_actions" ]
tags: [ '**' ]

jobs:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Windows

on:
push:
branches: [ "master", "dev_actions" ]
branches: ["no"]
# branches: [ "master", "dev_actions" ]
tags: [ '**' ]

jobs:
Expand Down
16 changes: 9 additions & 7 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ swig -python -py3 pychoco/backend.i
#pip3 install .

python3 setup.py develop -e -b .
pip install wheel
OS=`uname`
if [ "$OS" = "Linux" ]; then
python setup.py bdist_wheel --plat manylinux2014_x86_64
else
python3 setup.py bdist_wheel
fi
if [$1 != "nowheel"]
pip install wheel
OS=`uname`
if [ "$OS" = "Linux" ]; then
python setup.py bdist_wheel --plat manylinux2014_x86_64
else
python3 setup.py bdist_wheel
fi
fi

0 comments on commit cf9c199

Please sign in to comment.