Skip to content
Merged
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
29 changes: 25 additions & 4 deletions .github/workflows/maturin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Publish Release
on:
workflow_dispatch:
push:
# Branches only. A tag push and its release event would otherwise start two
# concurrent runs that race to upload the same release assets.
branches:
- "**"
release:
types:
- released
Expand All @@ -11,6 +15,10 @@ on:
permissions:
contents: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'push' }}

jobs:
linux:
runs-on: ubuntu-latest
Expand All @@ -28,13 +36,17 @@ jobs:
with:
python-version: "3.13"

- uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # ratchet:actions/setup-python@v4
with:
python-version: "3.14"

- name: Build wheels
uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # ratchet:PyO3/maturin-action@v1
with:
working-directory: ./vrp-cli
target: ${{ matrix.target }}
sccache: "true"
args: --release --out dist -m Cargo.toml -i 3.12 -i 3.13
args: --release --out dist -m Cargo.toml -i 3.12 -i 3.13 -i 3.14
manylinux: auto

- name: Upload wheels
Expand All @@ -61,12 +73,17 @@ jobs:
python-version: "3.13"
architecture: "arm64"

- uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # ratchet:actions/setup-python@v4
with:
python-version: "3.14"
architecture: "arm64"

- name: Build wheels
uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # ratchet:PyO3/maturin-action@v1
with:
working-directory: ./vrp-cli
target: ${{ matrix.target }}
args: --release --out dist -m Cargo.toml -i 3.12 -i 3.13
args: --release --out dist -m Cargo.toml -i 3.12 -i 3.13 -i 3.14
sccache: "true"

- name: Upload wheels
Expand All @@ -77,7 +94,9 @@ jobs:

pypi-publish:
name: Publish artifacts to Uptick's Pypi repo
if: startsWith(github.ref, 'refs/tags/')
# Manual runs must be dispatched from a tag, so the wheels always match a
# released version.
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && startsWith(github.ref, 'refs/tags/'))
permissions:
id-token: write
contents: write
Expand Down Expand Up @@ -107,7 +126,9 @@ jobs:
uvx s3pypi@2.0.1 upload dist/* --bucket s3pypi-610829907584-us-east-1
gh-publish:
name: Publish artifacts to GH
if: startsWith(github.ref, 'refs/tags/')
# Same rule. action-gh-release falls back to github.ref, so a branch dispatch
# would create a release named after the branch.
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && startsWith(github.ref, 'refs/tags/'))
permissions:
contents: write
needs: [linux, macos]
Expand Down
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ members = [
]

[workspace.package]
version = "1.25.4"
version = "1.25.5"
authors = ["Ilya Builuk <ilya.builuk@gmail.com>"]
license = "Apache-2.0"
keywords = ["vrp", "optimization"]
Expand All @@ -26,10 +26,10 @@ edition = "2024"
[workspace.dependencies]
# internal dependencies
rosomaxa = { path = "rosomaxa", version = "0.9.3" }
vrp-core = { path = "vrp-core", version = "1.25.4" }
vrp-scientific = { path = "vrp-scientific", version = "1.25.4" }
vrp-pragmatic = { path = "vrp-pragmatic", version = "1.25.4" }
vrp-cli = { path = "vrp-cli", version = "1.25.4" }
vrp-core = { path = "vrp-core", version = "1.25.5" }
vrp-scientific = { path = "vrp-scientific", version = "1.25.5" }
vrp-pragmatic = { path = "vrp-pragmatic", version = "1.25.5" }
vrp-cli = { path = "vrp-cli", version = "1.25.5" }

# external dependencies
serde = { version = "1.0.219", features = ["derive"] }
Expand Down
Loading