- workflows

This commit is contained in:
Wim Pomp
2024-10-16 15:49:21 +02:00
parent f44506966e
commit 8b618b8f8a
2 changed files with 7 additions and 40 deletions

View File

@@ -1,14 +1,13 @@
name: Wheels
on: workflow_call
# [push, pull_request]
on: [push, pull_request]
jobs:
wheels_pytest:
uses: ./.github/workflows/pytest.yml
# wheels_pytest:
# uses: ./.github/workflows/pytest.yml
build_wheels:
name: Build wheels on ${{ matrix.os }}
needs: [ wheels_pytest ]
# needs: [ wheels_pytest ]
runs-on: ${{ matrix.os }}
strategy:
matrix:
@@ -19,18 +18,10 @@ jobs:
- uses: actions/setup-python@v5
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.21.3
- name: Set path
if: runner.os != 'Windows'
run: export PATH="$HOME/.cargo/bin:$PATH"
- name: Check path
if: runner.os != 'Windows'
run: echo $PATH
run: pip install cibuildwheel==2.21.3
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
run: cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v4
with:
@@ -47,7 +38,7 @@ jobs:
- name: Build sdist
run: |
pip install build
python -m build --sdist
build --sdist
- uses: actions/upload-artifact@v4
with:

View File

@@ -1,24 +0,0 @@
name: Where_is_cargo
on: [push, pull_request]
jobs:
where_is_cargo:
name: Where is cargo
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Check path
if: runner.os != 'Windows'
run: which cargo
- name: Check path
if: runner.os != 'Windows'
run: echo $PATH
- name: Check path
if: runner.os != 'Windows'
run: echo $HOME