Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 11 additions & 27 deletions .github/workflows/maturin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
target: [x86_64, armv7]
target: [x86_64, aarch64]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: "3.12"
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
working-directory: ./vrp-cli
target: ${{ matrix.target }}
args: --release --out dist -i python3.10
sccache: 'true'
args: --release --out dist -m Cargo.toml --sdist -i 3.10 3.11 3.12
sccache: "true"
manylinux: auto
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-${{ matrix.target }}
path: ./vrp-cli/dist

windows:
Expand All @@ -40,7 +40,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: "3.12"
architecture: ${{ matrix.target }}
- name: Build wheels
uses: PyO3/maturin-action@v1
Expand All @@ -54,7 +54,6 @@ jobs:
with:
name: wheels
path: ./vrp-cli/dist

macos:
runs-on: macos-latest
strategy:
Expand All @@ -64,40 +63,25 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: "3.12"
architecture: "arm64"
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
working-directory: ./vrp-cli
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
sccache: 'true'
sccache: "true"
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-macos-${{ matrix.target }}
path: ./vrp-cli/dist

# sdist:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Build sdist
# uses: PyO3/maturin-action@v1
# with:
# working-directory: ./vrp-cli
# command: sdist
# args: --out dist
# - name: Upload sdist
# uses: actions/upload-artifact@v3
# with:
# name: wheels
# path: ./vrp-cli/dist

release:
name: Release
runs-on: ubuntu-latest
needs: [linux, windows, macos] #, sdist]
needs: [linux, windows, macos]
steps:
- uses: actions/download-artifact@v4
with:
Expand Down
3 changes: 2 additions & 1 deletion vrp-cli/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[build-system]
requires = ["maturin>=0.14,<0.15"]
requires = ["maturin>=1.0,<2.0"]

build-backend = "maturin"

[tool.maturin]
Expand Down