- 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 name: Wheels
on: workflow_call on: [push, pull_request]
# [push, pull_request]
jobs: jobs:
wheels_pytest: # wheels_pytest:
uses: ./.github/workflows/pytest.yml # uses: ./.github/workflows/pytest.yml
build_wheels: build_wheels:
name: Build wheels on ${{ matrix.os }} name: Build wheels on ${{ matrix.os }}
needs: [ wheels_pytest ] # needs: [ wheels_pytest ]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
@@ -19,18 +18,10 @@ jobs:
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
- name: Install cibuildwheel - name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.21.3 run: 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
- name: Build wheels - name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse run: cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
@@ -47,7 +38,7 @@ jobs:
- name: Build sdist - name: Build sdist
run: | run: |
pip install build pip install build
python -m build --sdist build --sdist
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: 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