Skip to content

Commit 614f311

Browse files
committed
update recipe, building manylinux was broken
1 parent 1840ea9 commit 614f311

1 file changed

Lines changed: 17 additions & 23 deletions

File tree

.github/workflows/package.yml

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Package
1+
name: Build and publish wheels
22

33
on:
44
release:
@@ -10,33 +10,27 @@ jobs:
1010
runs-on: ${{ matrix.os }}
1111
strategy:
1212
matrix:
13-
python-version: [3.6, 3.7, 3.8, 3.9]
1413
os: [ubuntu-latest, macOS-latest, windows-latest]
1514

1615
steps:
17-
- name: Switch branch
16+
- name: Checkout
1817
uses: actions/checkout@v2
19-
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v1
18+
# - name: Build wheels
19+
# uses: messense/maturin-action@v1
20+
# with:
21+
# maturin-version: latest
22+
# manylinux: auto
23+
# command: build
24+
# args: --release
25+
- name: Publish wheels
26+
uses: messense/maturin-action@v1
2127
with:
22-
python-version: ${{ matrix.python-version }}
23-
- name: Install Python dependencies
24-
run: |
25-
python -m pip install --upgrade pip
26-
pip install -r requirements.txt
27-
- name: Build crate
28-
run: cargo build --verbose
29-
- name: Test crate
30-
run: cargo test --verbose
31-
# this needs to be moved to a separate workflow
32-
# here it is run on the whole matrix and this fails
33-
# - name: Publish crate
34-
# run: cargo publish --token ${{ secrets.CRATES_TOKEN }}
35-
- name: Maturin build and publish
36-
run:
37-
maturin publish --no-sdist -u __token__ -i python
28+
maturin-version: latest
29+
manylinux: auto
30+
command: publish
31+
args: --no-sdist -u __token__
3832
env:
3933
MATURIN_PASSWORD: ${{ secrets.PYPI_TOKEN }}
4034

41-
# notes:
42-
# - for test-pypi: maturin publish --no-sdist -u __token__ -i python -r https://test.pypi.org/legacy/
35+
# args: --no-sdist -u __token__ -r https://test.pypi.org/legacy/
36+
# MATURIN_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}

0 commit comments

Comments
 (0)